Deleted questions by the total number of votes with answers

1

Please login or register to vote for this query.

(click on this box to dismiss)

Reverse Engineering Meta

Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation

SELECT TOP 100
  Q.Id,
  COUNT(QVote.Id) + COUNT(AVote.Id) AS VoteCount
FROM PostsWithDeleted Q
LEFT JOIN PostsWithDeleted A ON A.ParentId = Q.Id
LEFT JOIN Votes QVote ON QVote.PostId = Q.Id
LEFT JOIN Votes AVote ON AVote.PostId = A.Id
WHERE Q.DeletionDate IS NOT NULL
GROUP BY Q.Id
ORDER BY VoteCount DESC, Q.Id

Enter Parameters

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