Q&A for professional and enthusiast programmers
SELECT t.TagName, SUM(p.ViewCount) AS Views, SUM(p.ViewCount) / COUNT(*) AS [Avg Views] FROM Posts p JOIN PostTags pt ON p.Id = pt.PostId JOIN Tags t ON pt.TagId = t.id WHERE t.Count > 10 GROUP BY t.TagName ORDER BY [Avg Views] DESC