Top Users by location and tag

0

Please login or register to vote for this query.

(click on this box to dismiss)

Created by samliew (http://stackoverflow.com/users/584192/samuel-liew)

Music Fans

Q&A for music historians, critics, and fans

-- Top Users by location and tag (see http://stackoverflow.com/tags)
-- Created by samliew (http://stackoverflow.com/users/584192/samuel-liew)
-- Modified by sgryzko
  SELECT
    Users.Id AS [User Link],
    SUM(Questions.Score) AS Score,
    Tags.TagName 
  FROM Posts as Questions 
    INNER JOIN Users
    ON Questions.OwnerUserId = Users.Id
    
    INNER JOIN PostTags 
    ON PostTags.PostId = Questions.Id
    
    INNER JOIN Tags
    on Tags.Id = PostTags.TagId
  WHERE
    Users.Id >= 9000000
  AND
    Users.Id < 15000000
  AND
    LOWER(Location) LIKE LOWER('%Russia%')
  GROUP BY
    Users.Id,
    Tags.TagName 
  ORDER BY
    Score

Enter Parameters

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