Number of questions and their answers per month (only answered)


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for professional mathematicians

SELECT eomonth(p.CreationDate) [month],
  COUNT(p.Id) AS [Questions],
  SUM(p.AnswerCount) AS [Answers]
FROM Posts p
WHERE p.CreationDate >= '##Date1?2015-01-01##' AND p.CreationDate <= '##Date2?2021-01-01##'
  and (p.PostTypeId=1)
  and (p.AnswerCount>0)
---only if question is has an answer
GROUP BY eomonth(p.CreationDate)
ORDER BY eomonth(p.CreationDate)

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results