Search Users by Location and Skill

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

SELECT us.id [User Link],
       us.DisplayName [Name],
       us.Reputation,
       us.Location,
       tuser.Count1
        
FROM Users us

JOIN
(SELECT
  Answers.OwnerUserId AS UserId,
  SUM(CASE WHEN Tags.TagName LIKE '%##TagName1?angularjs##%' THEN 1 ELSE 0 END) AS Count1
FROM Tags
JOIN PostTags ON Tags.Id = PostTags.TagId
JOIN Posts ON Posts.Id = PostTags.PostId
JOIN Posts Answers ON Answers.ParentId = Posts.Id
GROUP BY Answers.OwnerUserId) tuser ON tuser.UserId = us.Id
WHERE UPPER(us.Location) like UPPER('%##Location?vadodara##%') AND Count1 > 0;

Enter Parameters

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