Search

0

Please login or register to vote for this query.

(click on this box to dismiss)

Русский язык Meta

Q&A for лингвистов, этимологов, и энтузиастов русского языка

SELECT us.*,tuser.Score
From Users us
JOIN
((SELECT Answers.OwnerUserId As UserId, SUM(Answers.Score) AS Score
     FROM Tags
    JOIN PostTags ON Tags.Id = PostTags.TagId
    JOIN Posts ON Posts.Id = PostTags.PostId
    JOIN Posts Answers ON Answers.ParentId = Posts.Id
    WHERE Tags.TagName
    IN ('java', 'j2ee', 'angular')
   GROUP BY Answers.OwnerUserId
) UNION
(SELECT u.Id as UserId, 0 AS Score
FROM Users u
WHERE lower(u.AboutME) like '%java%'
))
tuser ON tuser.UserId = us.Id
WHERE
lower(location) like '%hungary%' or
lower(location) like '%budapest%' 
ORDER BY tuser.Score DESC

Enter Parameters

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