Percentage of deleted question per tag


Please login or register to vote for this query.

(click on this box to dismiss)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

;  with deleted_cte as
(SELECT t.TagName AS tag, COUNT(q.Id) AS totalcount, COUNT(q.DeletionDate) AS deletedcount,
  ROUND(CAST(COUNT(q.DeletionDate) AS decimal)*100.0/(CAST(COUNT(q.Id) AS decimal)),2) AS percentage
FROM PostsWithDeleted q
  INNER JOIN PostTags pt ON q.Id = pt.PostId
  INNER JOIN Tags t ON pt.TagId = t.Id
WHERE q.PostTypeId=1
GROUP BY t.TagName

SELECT tag, totalcount, deletedcount, percentage
FROM deleted_cte
WHERE totalcount>=##num?5000##
ORDER BY percentage DESC

Enter Parameters

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