TOP SO user from Poland

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 T.*
FROM 
(
  SELECT ROW_NUMBER() OVER(PARTITION BY Location ORDER BY Reputation DESC) AS Pos,
    Id As [User Link],
    Reputation,
    Location
  FROM Users 
  WHERE LOWER(Location) Like '%poland%'  AND 
    Reputation >1000
) T
WHERE T.Pos BETWEEN 1 AND 10
ORDER BY T.Location ASC, T.Reputation DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results