Percentage of questions with at least one answer (per month)

1

Please login or register to vote for this query.

(click on this box to dismiss)

Quantitative Finance Meta

Q&A about the site for finance professionals and academics

;with answerstats_cte AS
(SELECT
  eomonth(q.CreationDate) AS CMonth,
  COUNT(q.ID) AS CountAll,
  SUM(CASE WHEN (q.AnswerCount>0) THEN 1 ELSE 0 END) AS CountAnswered
FROM Posts q
WHERE (q.PostTypeId=1)
---only questions 
GROUP BY eomonth(q.CreationDate)
)

SELECT
  CMonth,
  ROUND(CountAnswered*100.0/CountAll,2) AS percentage
FROM answerstats_cte
ORDER BY CMonth

Enter Parameters

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