Top comments - including the information about the tags

1

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

SELECT TOP(##num?500##)
  RANK() OVER(ORDER BY c.Score DESC) AS Rank,
  c.Score, c.Id AS [Comment Link], c.Text, UserId AS [User Link], c.UserDisplayName, c.CreationDate,
  p.Id AS [Post Link], p.Score, q.Tags, q.ViewCount
FROM Comments c INNER JOIN Posts p ON c.PostId=p.Id
  INNER JOIN Posts q ON coalesce(p.ParentId, p.Id)=q.Id
ORDER BY c.Score DESC

Enter Parameters

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