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 [Scores Sum],
                            Count (a.Id) AS [Number of Posts]
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) LIKE 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,
a.Id
Having SUM (a.Score) > Count (a.Id)
Order By u.Reputation DESC;

Enter Parameters

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