My position from Romanian users

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

SELECT seqnum as 'Position'
FROM (SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS seqnum, 
             Id AS [UserId], 
             Reputation
      FROM Users
      WHERE LOWER(Location) LIKE '%romania%'
     ) u
WHERE UserId = 1420197


SELECT COUNT(*) as 'Users from Romania:'
FROM
    Users
WHERE
    LOWER(Location) LIKE '%romania%'

Enter Parameters

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