‎11-20-2014 02:07 PM
Select Top 1000000 tblSerialnumber.Product,
Count(tblSerialnumber.SerialID) As Total
From tblAssets
Inner Join tblSerialnumber On tblAssets.AssetID = tblSerialnumber.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblState On tblState.State = tblAssetCustom.State
Where tblState.Statename = 'Active'
Group By tblSerialnumber.Product
Order By Total Desc,
tblSerialnumber.Product
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now