SELECT FORMAT(CreationDate, 'yyyy') AS CreationYear, COUN...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Engineering Meta

Q&A about the site for professionals and students of engineering

SELECT 
    FORMAT(CreationDate, 'yyyy') AS CreationYear, 
    COUNT(*) AS UserCount                         
FROM 
    users                                        
WHERE 
    CreationDate >= DATEADD(YEAR, -10, GETDATE())
GROUP BY 
    FORMAT(CreationDate, 'yyyy')                 
ORDER BY 
    CreationYear DESC;

Enter Parameters

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