Top N Users in the Country

10

Please login or register to vote for this query.

(click on this box to dismiss)

The Great Outdoors

Q&A for people who love being outdoors enjoying nature and wilderness, and learning about the required skills and equipment

-- Find Stack Overflow Top N User in the Country
-- TIEs are included

SELECT   RankNo, 
         [User Link], 
         Reputation, 
         DisplayName, 
         Location
FROM
         (
            SELECT Id [User Link], Reputation, DisplayName, Location,
                   DENSE_RANK() OVER (ORDER BY Reputation DESC) RankNo
            FROM   Users
            WHERE  UPPER(Location) like UPPER('%##Location##%')
         ) derievedtable
WHERE    RankNo <= ##MaximumRankNo##
ORDER    BY RankNo

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results