‎11-20-2014 11:36 AM
Select Top 1000000 Coalesce(tblAssetCustom.Manufacturer, N'Unknown') As Vendor,
Coalesce(tblAssetCustom.Model, N'Unknown') As AssetModel,
Count(tblAssets.AssetID) As Total
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tblAssetCustom.State = 1
Group By Coalesce(tblAssetCustom.Manufacturer, N'Unknown'),
Coalesce(tblAssetCustom.Model, N'Unknown')
Order By Total Desc,
Vendor,
AssetModel
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now