Q&A for pro webmasters
SELECT YEAR(CreationDate) AS CreationYear, MONTH(CreationDate) AS CreationMonth, COUNT (*) AS NumUsersCreated FROM dbo.Users WHERE YEAR(CreationDate) BETWEEN 2020 AND 2024 GROUP BY YEAR(CreationDate), MONTH(CreationDate) ORDER BY YEAR(CreationDate), MONTH(CreationDate);