Users with rep count more than [min] sorted in decreasing order

0

Please login or register to vote for this query.

(click on this box to dismiss)

Motor Vehicle Maintenance and Repair Meta

Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles

declare @minRep int = ##Minimum:int?1##;

select 
  count(id) 
from 
  users 
where 
  reputation >= @minRep

select
  Id,
  DisplayName,
  Reputation
from
  users
where
  reputation >= @minRep
group by
  reputation,
  id,
  DisplayName
order by
  reputation desc

Enter Parameters

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