Top Users by Country

1

Please login or register to vote for this query.

(click on this box to dismiss)

Created by samliew (http://stackoverflow.com/users/584192/samuel-liew)

Constructed Languages

Q&A for designers and users of artificial or invented languages, consciously developed instead of having developed naturally

-- Top Users by Country
-- Created by samliew (http://stackoverflow.com/users/584192/samuel-liew)

SELECT
    YEAR(CreationDate) AS [Year],
    ROW_NUMBER() OVER(PARTITION BY YEAR(CreationDate) ORDER BY Reputation DESC) AS [#],
    Id AS [User Link],
    Reputation
FROM
    Users
WHERE
    LOWER(Location) LIKE LOWER('%##CountryName##%')
ORDER BY
    [Year] DESC, Reputation DESC;

Enter Parameters

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