Average Score Per Tag

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT TagName, TagId, AVG(score), COUNT(Posts.Id)
FROM PostTags
INNER JOIN posts ON Posts.Id = PostTags.PostId
INNER JOIN Tags ON PostTags.TagId = Tags.Id
WHERE PostTypeId = 1
GROUP BY  TagId, TagName
ORDER BY AVG(Score) DESC

Enter Parameters

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