DECLARE @country varchar(20) = '##Country##'; SELECT ROW...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

DECLARE @country varchar(20) = '##Country##';

SELECT
    ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], 
    Id AS [User Link], 
    Reputation,
    Age
FROM
    Users
WHERE
  LOWER(Location) LIKE lower('%##Country##%') OR
  ID = 491243
    
ORDER BY
    Reputation DESC;

Enter Parameters

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