Created by samliew (http://stackoverflow.com/users/584192/samuel-liew)
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;