Most popular StackOverflow tags in Jan 2015

0

Please login or register to vote for this query.

(click on this box to dismiss)

Open Data

Q&A for developers and researchers interested in open data

-- Most popular StackOverflow tags in Jan 2015
 
SELECT
       num.TagName AS Tag,
       ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS JanRank,
       ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank,
       rate.Rate AS QuestionsInJan,
       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 < '2015-02-01'
AND Posts.CreationDate > '2015-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 rate.rate DESC
;

Enter Parameters

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