Q&A about the site for administrators and users of the CiviCRM Constituent Relationship Management software
SELECT DATEFROMPARTS(YEAR(P.CreationDate), MONTH(P.CreationDate), 1) AS Date, COUNT(*) AS NewQuestions FROM Posts P WHERE P.PostTypeId = 1 -- Questions AND YEAR(P.CreationDate) >= 2015 GROUP BY DATEFROMPARTS(YEAR(P.CreationDate), MONTH(P.CreationDate), 1) ORDER BY Date