→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
11-20-2014 11:13 AM
Select Top 1000000 Coalesce(tsysOS.OSname, 'Unknown') As OS,
Count(tblAssets.AssetID) As Total
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Left Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblState On tblState.State = tblAssetCustom.State
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Where tblState.Statename = 'Active' And tsysAssetTypes.AssetTypename = 'Windows'
Group By Coalesce(tsysOS.OSname, 'Unknown')
Order By Total Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now