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


Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

SELECT TOP (##num?1000##)
  a.OwnerUserId AS [User Link], a.OwnerDisplayName,
  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

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