‎10-07-2014 10:47 PM
Solved! Go to Solution.
‎10-10-2014 02:07 AM
SELECT DISTINCT TOP 1000000
tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tblADusers.Firstname,
tblADusers.Lastname,
tblADusers.Department,
tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSerialnumber.ProductKey
FROM
tblAssets
LEFT JOIN tblSoftware ON tblAssets.AssetID = tblSoftware.AssetID
LEFT JOIN tblSoftwareUni ON tblSoftwareUni.SoftID = tblSoftware.softID
LEFT JOIN tblSerialnumber ON tblAssets.AssetID = tblSerialnumber.AssetID AND tblSerialnumber.Product LIKE 'Adobe Acrobat%'
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysOS ON tblAssets.OScode = tsysOS.OScode
INNER JOIN tblADusers ON tblADusers.Username = tblAssets.Username
WHERE
tblSoftwareUni.softwareName LIKE 'Adobe Acrobat%'
‎10-10-2014 03:29 PM
‎10-10-2014 02:07 AM
SELECT DISTINCT TOP 1000000
tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tblADusers.Firstname,
tblADusers.Lastname,
tblADusers.Department,
tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblSerialnumber.ProductKey
FROM
tblAssets
LEFT JOIN tblSoftware ON tblAssets.AssetID = tblSoftware.AssetID
LEFT JOIN tblSoftwareUni ON tblSoftwareUni.SoftID = tblSoftware.softID
LEFT JOIN tblSerialnumber ON tblAssets.AssetID = tblSerialnumber.AssetID AND tblSerialnumber.Product LIKE 'Adobe Acrobat%'
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysOS ON tblAssets.OScode = tsysOS.OScode
INNER JOIN tblADusers ON tblADusers.Username = tblAssets.Username
WHERE
tblSoftwareUni.softwareName LIKE 'Adobe Acrobat%'
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now