Q&A for professional and enthusiast programmers
SELECT T.TagName, T.[Count] AS TagCount, SUM(Q.ID) AS PostTagCount FROM Posts Q INNER JOIN PostTags PT ON PT.PostId = Q.Id INNER JOIN Tags T ON T.Id = PT.TagId GROUP BY T.TagName, T.[Count]