Top users in Serbia for Python

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow Meta en español

Preguntas y respuestas sobre el sitio para programadores y profesionales de la informática

SELECT ROW_NUMBER() OVER(ORDER BY Score DESC) AS [#], us.id [User Link],
       us.DisplayName,
       tuser.Score
       
FROM Users us

JOIN 
(SELECT Answers.OwnerUserId AS UserId, SUM(Answers.Score) AS Score
     FROM Tags 
    JOIN PostTags ON Tags.Id = PostTags.TagId
    JOIN Posts ON Posts.Id = PostTags.PostId  
    JOIN Posts Answers ON Answers.ParentId = Posts.Id 
  WHERE Tags.TagName LIKE '%pandas%'
  GROUP BY Answers.OwnerUserId
) tuser ON tuser.UserId = us.Id

WHERE
   (Location like N'%Belgrade%'
   OR Location like N'%Beograd%'
   OR Location like N'%Sr'
   OR Location like N'%Serbia%'
   OR Location like N'%Novi Sad%'
   OR Location like N'%Srbija%'
   OR Location like N'%Niš%')
ORDER BY Score DESC;

Enter Parameters

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