Q&A about the site for Ubuntu users and developers
SELECT FORMAT(YEAR(CreationDate), '0000') + '-' + FORMAT(MONTH(CreationDate), '00') + '-01 00:00:00' AS MonthStart, COUNT(*) AS NewUsers FROM Users WHERE YEAR(CreationDate) BETWEEN 2020 AND 2024 GROUP BY YEAR(CreationDate), MONTH(CreationDate) ORDER BY MonthStart;