Top Users: Sri Lanka

0

Please login or register to vote for this query.

(click on this box to dismiss)

Portuguese Language

Q&A for linguists, teachers and learners wanting to discuss the finer points of the Portuguese language

SELECT TOP 1000 ROW_NUMBER() OVER(ORDER BY Users.Reputation DESC) AS [#], 
    Users.Id AS [User Link], 
    Users.Age,
    Users.Location,
    Users.Reputation,
    Users.UpVotes,
    Users.DownVotes,
    (SELECT COUNT(*) FROM Posts AS PQ WHERE PostTypeId = 1 AND PQ.OwnerUserId = Users.Id) AS [Questions],
    (SELECT COUNT(*) FROM Posts AS PA WHERE PostTypeId = 2 AND PA.OwnerUserId = Users.Id) AS [Answers]
FROM
    Users
WHERE
    UPPER(Users.Location) LIKE '%LANKA%'
    OR UPPER(Users.Location) LIKE '%GALLE%'
    OR UPPER(Users.Location) LIKE '%KANDY%'
ORDER BY
    Reputation DESC;

Enter Parameters

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