List of users in 'Location', by reputation score. Forked and modify from an original query by BoltClock.
Q&A about the site for administrators, end users, developers and designers for Craft CMS
-- Top users by location -- List of users in 'Location', by reputation score. -- -- Forked from an original query by BoltClock. SELECT ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], Id AS [User Link], CONCAT('=HYPERLINK(', '"http://stackoverflow.com/users/', Id, '", "', DisplayName, '")') AS 'Link in CSV', Location, Reputation, LastAccessDate, WebsiteUrl, AboutMe, CreationDate AS 'Join Date' FROM Users WHERE LOWER(Location) LIKE LOWER('%##Location##%') ORDER BY Reputation DESC;