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)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

-- 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 main site
loading Hold tight while we fetch your results