Q&A about the site for people who build and repair bicycles, people who train cycling, or commute on bicycles
select num.TagName as Tag, row_number() over (order by rate.Rate1 desc) as Rank09, row_number() over (order by num.Num desc) as TotalRank, rate.Rate1 as QuestionsIn2008, num.Num as QuestionsTotal from (select count(PostId) as Rate1, TagName from Tags, PostTags, Posts where Tags.Id = PostTags.TagId and Posts.Id = PostId and Posts.CreationDate < '2008-12-31' and Posts.CreationDate > '2008-01-01' 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 num.Num desc ;