Compare Size and Growth Trends for StackOverflow Tags

24

Please login or register to vote for this query.

(click on this box to dismiss)

Law Meta

Q&A about the site for legal professionals, students, and others with experience or interest in law

DECLARE @iVariable INT, @vVariable VARCHAR(100), @dDateTime DATETIME
SET @iVariable = 1
SET @vVariable = 'myvar'
SET @dDateTime = GETDATE()
SET @dDateTime = DATEADD(month, -1, GETDATE())

DECLARE @Last30 datetime = '12/1/2012'

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 = 'angularjs'
AND
posts.creationdate > @Last30
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 > @Last30
group by tagname

Enter Parameters

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