‎11-20-2014 11:05 AM
SELECT
TOP 1000000 DATEPART(yyyy, tblBIOS.ReleaseDate) AS BiosYearReleased,
COUNT(tblAssets.AssetID) AS Total
FROM tblAssets
INNER JOIN tblBIOS ON tblAssets.AssetID = tblBIOS.AssetID
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblState On tblState.State = tblAssetCustom.State
Where tblState.Statename = 'Active'
GROUP BY DATEPART(yyyy, tblBIOS.ReleaseDate)
ORDER BY DATEPART(yyyy, tblBIOS.ReleaseDate)
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now