SELECT DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

SELECT 
    DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS MonthYear,
    COUNT(*) AS NumQuestions
FROM 
    Posts
WHERE 
    PostTypeId = 1
GROUP BY 
    DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0)
ORDER BY 
    MonthYear;

Enter Parameters

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