Tags with highest average answer scores (among tags with at least 10 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
t.TagName,
COUNT(p.Id) AS NumAnswers,
SUM(p.Score) AS TotalScore,
AVG(p.Score + 0.0) AS AvgScore
FROM Posts p
JOIN PostTags pt ON pt.PostId = p.Id
JOIN Tags t ON t.Id = pt.TagId
WHERE p.PostTypeId = 2
GROUP BY t.tagName, t.Id
HAVING COUNT(p.Id) >= 1000
ORDER BY AvgScore DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results