Top users by average score in the tag (over all tags)

1

Please login or register to vote for this query.

(click on this box to dismiss)

Super User

Q&A for computer enthusiasts and power users

SELECT TOP (##num?1000##)
  a.OwnerUserId AS [User Link], a.OwnerDisplayName,
  t.TagName,
  AVG(CAST(a.Score AS decimal)) AS [Average Score],
  SUM(a.Score) AS [Total Score],
  COUNT(a.Score) AS [Count]
FROM Posts a INNER JOIN PostTags pt ON a.ParentId = pt.PostId
  INNER JOIN Tags t ON pt.TagId = t.Id
GROUP BY a.OwnerUserId, a.OwnerDisplayName, t.TagName
HAVING COUNT(a.Score)>=##min?50##
ORDER BY AVG(CAST(a.Score AS decimal)) DESC

Enter Parameters

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