Find contactable developers by tag, location and other

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

SELECT TOP 2000
    CONCAT('http://stackoverflow.com/users/', Posts.OwnerUserId),
    Users.AboutMe,
    Users.Reputation,
    TagName,
    COUNT(*) AS UpVotes,
    Users.WebsiteUrl
FROM Tags
    INNER JOIN PostTags ON PostTags.TagId = Tags.id
    INNER JOIN Posts ON Posts.ParentId = PostTags.PostId
    INNER JOIN Votes ON Votes.PostId = Posts.Id and VoteTypeId = 2
    INNER JOIN Users ON Users.Id = Posts.OwnerUserId
WHERE 
    TagName = '##technology##'
    AND upper(Users.Location) like upper('%##location##%')
    AND (
        Users.AboutMe like '%http%' 
        OR upper(Users.AboutMe) like upper('%mail%') 
        OR Users.AboutMe like '%@%'
        OR upper(Users.AboutMe) like upper('%at%')
        OR upper(Users.WebsiteUrl) IS NOT NULL
        )
    AND upper(Users.AboutMe) like upper('%##other##%')
GROUP BY TagName, Posts.OwnerUserId, Users.Reputation, Users.AboutMe, Users.WebsiteUrl 
ORDER BY UpVotes DESC

Enter Parameters

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