SELECT FORMAT(YEAR(CreationDate), '0000') + '-' + FORMAT(...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physics Meta

Q&A about the site for active researchers, academics and students of physics

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;

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results