Users with most comments

1

Please login or register to vote for this query.

(click on this box to dismiss)

Webmasters

Q&A for pro webmasters

SELECT TOP(##num?100##)
  RANK() OVER(ORDER BY COUNT(c.Id) DESC) AS Rank,
  c.UserId AS [User Link],
  COUNT(c.Id) AS [Number of Comments]
FROM Comments c 
GROUP BY c.UserId
ORDER BY COUNT(c.Id) DESC

Enter Parameters

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