Users with most Necromancer badges at a given date

4

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 300
  row_number() over(order by count(*) desc) as rank, 
  Badges.UserId AS [User Link],
  Users.Reputation,
  count(*) AS badges
FROM
  Badges
INNER JOIN
  Users
ON
  Users.id = Badges.UserId AND
  Badges.Name = 'Necromancer' AND
  Badges.Date < '##Date?9999-01-01##'
GROUP BY
  Badges.UserId, Users.Reputation
ORDER BY
  Badges DESC

Enter Parameters

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