Stack Overflow tag total views and questions

0

Please login or register to vote for this query.

(click on this box to dismiss)

Robotics Meta

Q&A about the site for professional robotic engineers, hobbyists, researchers and students

select 
       TagName as Tag,
       row_number() over (order by Rate desc) as TotalRank,
       Rate as TotalQuestions,
       TotalViews,
       TotalComments,
       TotalAnswers
from

(select count(PostId) as Rate, TagName, sum(cast(ViewCount as bigint)) as TotalViews, sum(cast(CommentCount as bigint)) as TotalComments, count(AcceptedAnswerId) as TotalAnswers
from
  Tags, PostTags, Posts
where Tags.Id = PostTags.TagId and Posts.Id = PostId
AND Posts.CreationDate < DATEADD(mm, DATEDIFF(mm, 0, GETDATE()) - 51, 0)
group by TagName) as tq
where Rate > 50

Enter Parameters

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