Number of questions with at least one answer (per month) - excluding closed questions

1

Please login or register to vote for this query.

(click on this box to dismiss)

Programming Language Design and Implementation

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)

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results