Top Contributors for LDAP

1

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

Q&A for scientists using computers to solve scientific problems

SELECT ROW_NUMBER() OVER(ORDER BY Score DESC) AS [#], us.id [User Link],
       us.DisplayName,
       tuser.Score,
       us.location
       
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 ('ldap')
  GROUP BY Answers.OwnerUserId
) tuser ON tuser.UserId = us.Id

ORDER BY Score DESC;

Enter Parameters

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