select num.TagName as Tag, row_number() over (order by ra...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Spanish Language

Q&A for linguists, teachers, students and Spanish language enthusiasts in general wanting to discuss the finer points of the language

select 
       num.TagName as Tag,
       row_number() over (order by rate.Rate desc) as PeriodRank,
       row_number() over (order by num.Num desc) as TotalRank,
       rate.Rate as QuestionsPeriod,
       num.Num as QuestionsTotal
from
(select count(PostId) as Rate, TagName
from
  Tags, PostTags, Posts
where Tags.Id = PostTags.TagId and Posts.Id = PostId
and Posts.CreationDate < '2009-06-30'
and Posts.CreationDate > '2021-01-01'
and exists (select 1 from PostTags pt2, Tags tag2 where tag2.TagName = 'javascript' and tag2.Id = pt2.TagId and pt2.PostId = Posts.Id)
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) > 800)
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