Q&A about the site for enthusiasts and scholars of mythology and folklore
SELECT DATEPART(YEAR, CreationDate) AS Year, DATEPART(MONTH, CreationDate) AS Month, COUNT(*) AS AnswerCount FROM Posts WHERE PostTypeId = 1 -- 1 indicates questions AND CreationDate >= DATEADD(YEAR, -20, GETDATE()) GROUP BY DATEPART(YEAR, CreationDate), DATEPART(MONTH, CreationDate) ORDER BY Year, Month;