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)

Poker Meta

Q&A about the site for serious players and enthusiasts of poker

SELECT TOP 100
  Q.Id,
  'site://questions/' + CAST(Q.Id AS VARCHAR(MAX)) AS [Link],
  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