RnD

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT TOP 50
    ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#], 
    Id AS [User Link], 
    Reputation,
    (select sum(ViewCount) from Posts where OwnerUserId = Users.Id),
    (select count(Posts.Id) from Posts where OwnerUserId = Users.Id)
FROM
    Users
WHERE
    LOWER(Location) LIKE '%rostov%'
ORDER BY
    Reputation DESC;

Enter Parameters

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