Top users by country

0

Please login or register to vote for this query.

(click on this box to dismiss)

Psychology & Neuroscience Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

select * from(
SELECT
    Top ##Top##
    ROW_NUMBER() OVER(partition by users.id ORDER BY Reputation DESC) AS [#], 
    users.Id 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 where [#] =1
    ORDER BY
    [#] DESC;

Enter Parameters

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