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

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 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
             FROM Users u
             JOIN (
                    SELECT DISTINCT UserId
                    FROM Badges
                    WHERE Upper(Name) LIKE Upper('%##BadgeName##%') AND
                          Class IN (1, 2, 3) AND
                          TagBased = 1
                  ) tag_badges
             ON tag_badges.UserId = u.Id
             
             JOIN Posts on
             (u.Id=Posts.OwnerUserId) And
             Upper(Posts.Tags) LIKE Upper('%##TagName##%') AND
             Upper(u.Location) LIKE Upper('%##Location##%')
       Where Upper(Location) LIKE Upper('%##Location##%')

       Order By u.Reputation DESC;

Enter Parameters

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