Trusted Users Without a Specific Badge

0

Please login or register to vote for this query.

(click on this box to dismiss)

Mathematics

Q&A for people studying math at any level and professionals in related fields

-- Returns a list of trusted users (20K+ rep) without a specified badge

With SpecificBadges (UserId, Id) as (
  Select UserId, Id
  From Badges
  Where Name like '##badgeName##'
)

Select
u.Id as [User Link], u.Reputation
From Users u
Where u.Reputation >= 20000 and Not Exists ( Select * From SpecificBadges sb Where sb.UserId = u.Id )
Order By Reputation Desc

Enter Parameters

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