comments more popular than their parent posts

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
  Comments.Id as [Comment Link],
  Comments.Score,
  Comments.UserId as [User Link],
  Posts.Id as [Post Link],
  Posts.Score
FROM Comments
INNER JOIN Posts
  ON Comments.PostId = Posts.Id
ORDER BY Comments.Score - Posts.Score DESC

Enter Parameters

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