SELECT TOP 20 p.ParentId AS [Post Link], COUNT(*) AS Answ...

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 20
  p.ParentId AS [Post Link],
  COUNT(*) AS Answers
FROM PostsWithDeleted p
WHERE p.PostTypeId = 2
GROUP BY p.ParentId
ORDER BY Answers DESC

Enter Parameters

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