Top Locations by sum of users reputation

2

Please login or register to vote for this query.

(click on this box to dismiss)

Vegetarianism

Q&A for those committed to a vegan or vegetarian lifestyle and anyone interested in learning more

-- Top Locations by sum of users reputation
-- Created by https://stackoverflow.com/users/5372462/ofirule

SELECT
    ROW_NUMBER() OVER(ORDER BY SUM(Reputation) DESC) AS [#], 
    Location, 
    SUM(Reputation),
    COUNT(*) as [users_count]
FROM
    Users
GROUP BY
    Location
HAVING
    SUM(Reputation) >= 1000000;

Enter Parameters

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