Users with most Necromancer badges at a given date

7

Please login or register to vote for this query.

(click on this box to dismiss)

Most decorated users

Drupal Answers

Q&A for Drupal developers and administrators

SELECT TOP 300
  row_number() over(order by count(*) desc) as rank, 
  Badges.UserId AS [User Link],
  count(*) AS 'Necromancer badges',
  Users.Reputation 'Reputation',
  Users.Reputation / (10 * count(*)) AS 'Reputation / (10 * 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
  'Necromancer badges' DESC

Enter Parameters

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