Users with most of a particular badge

0

Please login or register to vote for this query.

(click on this box to dismiss)

Most decorated users

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT TOP 1000 row_number() over(order by count(*) desc) as rank, 
  UserId AS [User Link], count(*) AS badges
FROM Badges
WHERE badges.Id = CONVERT(Int, ##BadgeIdOrName##)
GROUP BY UserId
ORDER BY badges DESC

Enter Parameters

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