Tags by the total view count of all their questions

1

Please login or register to vote for this query.

(click on this box to dismiss)

Moderators

Q&A for community managers, administrators, and moderators

SELECT TOP 1000
  MIN(Tags.TagName) AS TagName,
  COUNT(*) AS TagCount,
  SUM(CAST(Posts.ViewCount AS BIGINT)) AS TotalViewCount
FROM Tags, PostTags, Posts
WHERE
  Tags.Id = PostTags.TagId
  AND
  PostTags.PostId = Posts.Id
GROUP BY Tags.Id
ORDER BY TotalViewCount DESC, Tags.Id

Enter Parameters

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