Percentage of closed question per tag

1

Please login or register to vote for this query.

(click on this box to dismiss)

Christianity

Q&A for committed Christians, experts in Christianity and those interested in learning more

SELECT t.TagName, COUNT(q.Id), COUNT(q.ClosedDate),
  ROUND(COUNT(q.ClosedDate)*100.0/COUNT(q.Id),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
ORDER BY percentage DESC

Enter Parameters

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