Lowest reputation users with a specific badge


Please login or register to vote for this query.

(click on this box to dismiss)

Raspberry Pi

Q&A for users and developers of hardware and software for Raspberry Pi

SELECT TOP(##num?500##)
  RANK() OVER(ORDER BY u.Reputation ASC) AS Rank,
  u.Id AS [User Link],
  COUNT (b.Id) AS [Count]
FROM Badges b INNER JOIN Users u ON b.UserId=u.Id
  WHERE (b.Name = '##name?Famous Question##')
GROUP BY u.Id, u.Reputation
ORDER BY u.Reputation ASC

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results