Find Stack Overflow Users In Your City (with user-links) With Their Score For One Particular Tag


Please login or register to vote for this query.

(click on this box to dismiss)

Genealogy and Family History Meta

Q&A about the site for expert genealogists and people interested in genealogy or family history

-- Find Stack Overflow Users In any location (with user-links) and their score for a particular Tag
-- A simply query to find users in your city or country with their rank/score for a particular Tag. Added user links.

select ROW_NUMBER() OVER (ORDER BY tuser.Tag_Score desc) AS User_Rank_On_Tag,
        (PERCENT_RANK( ) OVER(ORDER BY tuser.Tag_Score desc) * 100) AS [TOP_%],
        us.Id [User Link], 
from Users us

(SELECT Answers.OwnerUserId AS UserId, SUM(Answers.Score) AS Tag_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 UPPER(Tags.TagName) = UPPER('##TagName##')
  GROUP BY Answers.OwnerUserId
) tuser ON tuser.UserId = us.Id

where UPPER(us.Location) like UPPER('%##LocationName##%')
order by tuser.Tag_Score desc, us.Reputation desc

Enter Parameters

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