Q&A for Drupal developers and administrators
-- Top 25 users from Pune SELECT TOP 20 ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], Id AS [User Link], Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%pune%' OR UPPER(Location) LIKE '%PUNE%' or Location like '%pune%' AND Reputation >= 10000 ORDER BY Reputation DESC;