Q&A for professional and enthusiast programmers
SELECT DATEFROMPARTS(YEAR(P.CreationDate), MONTH(P.CreationDate), 1) AS Date, COUNT(*) AS NewAnswers FROM PostsWithDeleted P WHERE P.PostTypeId = 2 -- Answers AND YEAR(P.CreationDate) >= 2018 GROUP BY DATEFROMPARTS(YEAR(P.CreationDate), MONTH(P.CreationDate), 1) ORDER BY Date