questions per month

0

Please login or register to vote for this query.

(click on this box to dismiss)

Code Review

Q&A for peer programmer code reviews

SELECT 
    DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS MonthStart,
    COUNT(*) AS QuestionCount
FROM 
    Posts
WHERE 
    PostTypeId = 1 -- 1 represents questions
GROUP BY 
    DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0)
ORDER BY 
    QuestionCount Desc

Enter Parameters

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