Top SO users from Turkey

0

Please login or register to vote for this query.

(click on this box to dismiss)

Cognitive Sciences Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

SELECT TOP 20 
       ROW_NUMBER() OVER (ORDER BY UpVotes DESC) AS [#], q.*
  FROM     
(    
SELECT  
    Users.Id AS User_ID, 
    DisplayName,
    Reputation,
    Location,
    COUNT(*) AS UpVotes 
FROM Tags
    INNER JOIN PostTags ON PostTags.TagId = Tags.id
    INNER JOIN Posts ON Posts.ParentId = PostTags.PostId
    INNER JOIN Votes ON Votes.PostId = Posts.Id and VoteTypeId = 2
    INNER JOIN Users ON Posts.OwnerUserId = Users.Id
WHERE 
   TagName in ('oracle','sql')
  AND
   (
     LOWER(Location) LIKE '%singapore%' OR
     LOWER(Location) LIKE '%sg%'  )
GROUP BY DisplayName, Users.Id, Location, Reputation
) q

Enter Parameters

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