Created by samliew (http://stackoverflow.com/users/584192/samuel-liew)
Q&A about the site for developers and end users of the Sitecore CMS and multichannel marketing software
-- Top Users by Country -- Created by samliew (http://stackoverflow.com/users/584192/samuel-liew) SELECT distinct ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], Users.Id AS [User Link], Reputation, Tags FROM Users, Posts WHERE LOWER(Location) LIKE LOWER('%##CountryName##%') AND Users.Id = Posts.OwnerUserId ORDER BY Reputation DESC;