Percentage of deleted questions (breakdown by month when created)


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for community managers, administrators, and moderators

SELECT eomonth(CreationDate),
ROUND((COUNT(DeletionDate))*100.0/(COUNT(*)),2) AS percentage
FROM PostsWithDeleted
WHERE PostTypeId=1
GROUP BY eomonth(CreationDate)
ORDER BY eomonth(CreationDate)
---Posts which are not deleted have DeletionDate NULL
---So COUNT(DeletionDate) only counts Deleted Posts

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results