SELECT us.DisplayName, us.Location, tuser.Score FROM User...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness

Q&A for physical fitness professionals, athletes, trainers, and those providing health-related needs

SELECT us.DisplayName, us.Location, tuser.Score
FROM Users us
JOIN 
(SELECT TOP 1000 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 = 'data-mining'
  GROUP BY Answers.OwnerUserId
ORDER BY SUM(Posts.Score) DESC
) tuser ON tuser.UserId = us.Id
WHERE Location LIKE '%Russia%'
ORDER BY tuser.Score DESC

Enter Parameters

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