Q&A about the site for Joomla! administrators, users, developers and designers
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