Compare Size and Growth Trends for StackOverflow Tags

24

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

DECLARE @1MonthsAgo datetime = DATEADD(month, -1, GETDATE())
DECLARE @2MonthsAgo datetime = DATEADD(month, -1, GETDATE())
DECLARE @3MonthsAgo datetime = DATEADD(month, -1, GETDATE())

SELECT TagName, COUNT(*) AS Posts FROM Tags
    INNER JOIN PostTags ON PostTags.TagId = Tags.id
    INNER JOIN Posts ON Posts.ParentId = PostTags.PostId
where tagname = 'angularjs' AND
posts.creationdate > @1MonthsAgo
group by tagname

SELECT TagName, COUNT(*) AS Posts FROM Tags
    INNER JOIN PostTags ON PostTags.TagId = Tags.id
    INNER JOIN Posts ON Posts.ParentId = PostTags.PostId
where tagname = 'angularjs' AND
posts.creationdate > @2MonthsAgo and posts.creationdate < @1MonthsAgo
group by tagname

SELECT --TOP 20 
    TagName,
    COUNT(*) AS Posts 
FROM Tags
    INNER JOIN PostTags ON PostTags.TagId = Tags.id
    INNER JOIN Posts ON Posts.ParentId = PostTags.PostId
where tagname = 'knockout.js'
AND
posts.creationdate > @1MonthsAgo
group by tagname

Enter Parameters

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