Top users by country

0

Please login or register to vote for this query.

(click on this box to dismiss)

Android Enthusiasts Meta

Q&A about the site for enthusiasts and power users of the Android operating system

select distinct [user link],reputation from(
SELECT
    Top ##Top##
    ROW_NUMBER() OVER(partition by users.id ORDER BY Reputation DESC) AS [#], 
    users.displayname AS [User Link], 
    Reputation
FROM
    Users inner join posts
    on users.id=posts.owneruserid
WHERE
     LOWER(Location) LIKE LOWER('%##FullCountryName##%') and Tags like N'%sql%'
     ) as k
    ORDER BY
    reputation DESC;

Enter Parameters

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