Top users without gold badge.

1

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 100
  Users.Reputation,
  Users.Id as [User Link],
  Sum(case when Badges.Class = 2 then 1 else 0 end) as Silver,
  Sum(case when Badges.Class = 3 then 1 else 0 end) as Bronze
From Users 
  Inner Join Badges On Badges.UserId = Users.Id
Group By Users.Id, Reputation, DisplayName
Having Min(Badges.Class) > 1
Order By Reputation Desc

Enter Parameters

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