Top answerers in the given tag (including deleted users)

1

Please login or register to vote for this query.

(click on this box to dismiss)

Cardano Meta

Q&A for users and developers of the Cardano cryptocurrency ecosystem

SELECT TOP ##num?100##
  RANK() OVER(ORDER BY SUM(a.Score) DESC) AS [Rank],
  a.OwnerUserId AS [User Link], 
  a.OwnerDisplayName, 
  SUM(a.Score) AS [Total Score], 
  COUNT(a.Id) AS [Num Answers],
  SUM(case when a.CommunityOwnedDate is NULL then a.Score else 0 end) AS [Non-CW Score],
  SUM(case when a.CommunityOwnedDate is NULL then 1 else 0 end) AS [Non-CW Answers]
FROM Posts a JOIN Posts q ON a.ParentId=q.Id
  INNER JOIN PostTags pt ON q.Id = pt.PostId
  INNER JOIN Tags t ON pt.TagId = t.Id
WHERE t.TagName=##tagName:string?discussion##  
GROUP BY a.OwnerUserId, a.OwnerDisplayName
ORDER BY SUM(a.Score) DESC

Enter Parameters

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