Percentage of deleted questions (breakdown by month when created)

1

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Different

Q&A for power users of Apple hardware and software

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

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