Created by samliew (http://stackoverflow.com/users/584192/samuel-liew)
Q&A about the site for people interested in improving and participating in the patent system
-- Top Users by Country -- Created by samliew (http://stackoverflow.com/users/584192/samuel-liew) SELECT ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], Users.Id AS [User Link], Users.*, Tags FROM Users, Posts WHERE LOWER(Location) LIKE LOWER('%##CountryName##%') AND Users.Id = Posts.OwnerUserId ORDER BY Reputation DESC;