Hey! I'm trying to make a report that shows the following: AssetName, Model, Manufacturer, SerialNumber, SystemSKU, Description (from AD) and Last Login (Displayname). The problem is that it does not show MAC computers when Description and Displayname are included. What have I done wrong?
"
Select Distinct Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssetCustom.Model,
tblAssetCustom.Manufacturer,
tblAssetCustom.Serialnumber,
tblAssetCustom.SystemSKU,
tblADComputers.Description,
tblADusers.Displayname
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Inner Join tblADusers On tblADusers.Username = tblAssets.Username And
tblADComputers.Description <> tblADusers.Displayname
Where (tblAssets.AssetName Like 'SUB%') Or
(tblAssets.AssetName Like 'SUS%')
"