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)


Q&A for those committed to a vegan or vegetarian lifestyle and anyone interested in learning more

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 meta site
loading Hold tight while we fetch your results