‎07-03-2009 07:18 PM
SELECT YEAR(InstallDate) AS Year, COUNT(*) AS Installations
FROM dbo.tblOperatingsystem
GROUP BY MONTH(InstallDate), YEAR(InstallDate)
‎07-09-2009 03:01 PM
SELECT TOP (100) PERCENT YEAR(LEFT(InstallDate, 8)) AS Year, MONTH(LEFT(InstallDate, 8)) AS Month, COUNT(*) AS Installations
FROM dbo.tblOperatingsystem
GROUP BY MONTH(LEFT(InstallDate, 8)), YEAR(LEFT(InstallDate, 8))
ORDER BY Year, Month
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now