Percentage of deleted questions (breakdown by year when created)


Please login or register to vote for this query.

(click on this box to dismiss)

Constructed Languages

Q&A for designers and users of artificial or invented languages, consciously developed instead of having developed naturally

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

Enter Parameters

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