Most popular StackOverflow/Stackexchange Tags in 2020, having been posted >10 times

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

Q&A for scientists using computers to solve scientific problems

-- Most popular StackOverflow/Stackexchange Tags since 2012, having been posted >10 times

select 
       getdate() as DateTime,
       num.TagName as Tag,
       row_number() over (order by rate.Rate desc) as RankSince2013,
       row_number() over (order by num.Num desc) as TotalRank,
       rate.Rate as QuestionsIn2020,
       num.Num as TotalQuestions

from

(select count(PostId) as Rate, TagName
from
  Tags, PostTags, Posts
where Tags.Id = PostTags.TagId and Posts.Id = PostId
and Posts.CreationDate > '2020-01-01'
and Posts.CreationDate < '2030-12-31'
group by TagName) as rate

INNER JOIN

(select count(PostId) as Num, TagName
from
  Tags, PostTags, Posts
where Tags.Id = PostTags.TagId and Posts.Id = PostId
group by TagName
having count(PostId) > 10)
as num ON rate.TagName = num.TagName
order by rate.rate desc
;

Enter Parameters

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