Questions with most deleted answers

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT TOP 100
  COUNT(P.Id) AS 'Deleted Answers',
  'site://q/' + CAST(P.ParentId AS nvarchar) AS 'Question Link'
FROM PostsWithDeleted P
WHERE
  P.PostTypeId = 2
  AND P.DeletionDate IS NOT NULL
GROUP BY P.ParentId
ORDER BY 'Deleted Answers' DESC

Enter Parameters

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