SELECT Distinct u.Id AS [User Link], CONCAT('https://stac...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT Distinct u.Id AS [User Link],
                            CONCAT('https://stackoverflow.com/users/', u.Id) AS [Profile Link],
                            u.DisplayName,
                            u.Location,
                            u.WebsiteUrl,
                            u.AboutMe,
                            u.Views,
                            u.UpVotes,
                            u.DownVotes,
                            u.EmailHash,
                            u.Reputation,
                            SUM (a.Score) AS [Tag Scores]
FROM Users u
INNER JOIN Posts a ON a.OwnerUserId = u.id
INNER JOIN Posts q ON a.ParentId = q.Id
INNER JOIN PostTags pt ON pt.PostId = q.Id
INNER JOIN Tags t ON t.Id = pt.TagId
WHERE
     Upper(t.TagName) = Upper('%##TagName##%') AND
     Upper(u.Location) LIKE Upper('%##Location##%')
Group By u.Id, u.DisplayName, u.Location, u.WebsiteUrl, u.AboutMe, u.Views,
u.UpVotes, u.DownVotes, u.EmailHash, u.Reputation
Order By u.Reputation DESC;

Enter Parameters

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