Rank users by Country

0

Please login or register to vote for this query.

(click on this box to dismiss)

Engineering

Q&A for professionals and students of engineering

SELECT Row_Number() over (order by sum(Reputation) desc) as 'Rank',
  Location, count(*) as 'User Count', sum(Reputation) as 'Collective Rep'
FROM Users
where Location <> ''
group by Location
order by sum(Reputation) desc

Enter Parameters

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