Q&A for designers and implementers of computer programming languages
SELECT eomonth(q.CreationDate) AS [Month], COUNT(q.Id) AS [All questions], SUM(CASE WHEN (q.AnswerCount>0) THEN 1 ELSE 0 END) AS [At least one answer], COUNT(q.AcceptedAnswerId) AS [Accepted answer] FROM Posts q WHERE (q.PostTypeId=1) ---only questions AND (q.ClosedDate IS NULL) ---not closed questions GROUP BY eomonth(q.CreationDate) ORDER BY eomonth(q.CreationDate)