Users with most comments

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(##num?500##)
  RANK() OVER(ORDER BY Count(Id) DESC) AS Rank,
  UserId AS [User Link], UserDisplayName,
  Count(Id) AS [Comment Count]
FROM Comments  
GROUP BY UserId, UserDisplayName
ORDER BY Count(Id) DESC

Enter Parameters

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