average score of tags with most questions

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 Tags.TagName,COUNT(*) AS 'Number of Questions',AVG(Posts.Score+0.0) AS 'average score'
FROM Posts,PostTags,Tags
WHERE Posts.Id=PostTags.PostId
  AND PostTags.TagId=Tags.Id
GROUP BY Tags.TagName
ORDER BY COUNT(*) DESC

Enter Parameters

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