Percentage of closed question per month

1

Please login or register to vote for this query.

(click on this box to dismiss)

Moderators

Q&A for community managers, administrators, and moderators

SELECT
  eomonth(p.creationdate),
  ROUND((COUNT(p.ClosedDate))*100.0/(COUNT(p.Id)),2) AS percentage
FROM Posts p
WHERE (p.PostTypeId=1)
   AND (p.CreationDate >= '##Date1?2010-01-01##') AND (p.CreationDate <= '##Date2?2021-01-01##')
GROUP BY eomonth(p.creationdate)
ORDER BY eomonth(p.creationdate)

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results