Existing question with the most deleted posts

1

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers

Q&A for Drupal developers and administrators

SELECT TOP 100 Q.Id AS [Post Link], COUNT(*) AS Count
FROM Posts Q, PostsWithDeleted A
WHERE
  A.ParentId = Q.Id
  AND
  A.DeletionDate IS NOT NULL
  AND
  Q.ClosedDate IS NULL
  AND
  Q.AnswerCount=0
GROUP BY Q.Id
ORDER BY Count DESC, Q.Id DESC

Enter Parameters

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