Most popular tags (all time)

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 Top 50 TagName as Tag, avg(ViewCount) as AverageViews, sum(Score) as Scores, sum(FavoriteCount) as Favorites, count(Posts.Id) as Posts
from posts 
inner join PostTags on PostTags.PostID = Posts.Id 
inner join Tags on Tags.Id = PostTags.TagID 
and posts.CreationDate >= cast('2020-01-01' as datetime)
and posts.CreationDate <= cast('2021-11-01' as datetime)
group by TagName 
order by count(Posts.Id) DESC

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results