test1

0

Please login or register to vote for this query.

(click on this box to dismiss)

Meta Stack Exchange

Q&A for meta-discussion of the Stack Exchange family of Q&A websites

SELECT 
    dateadd(m, -datediff(m, CreationDate, getdate()),getdate()),
    COUNT(*) AS questions
 FROM Tags
    INNER JOIN PostTags ON PostTags.TagId = Tags.id
    INNER JOIN Posts ON Posts.Id = PostTags.PostId
WHERE 
    Tags.tagname = 'sql'
GROUP BY  dateadd(m, -datediff(m, CreationDate, getdate()),getdate())
ORDER BY  dateadd(m, -datediff(m, CreationDate, getdate()),getdate()) ASC

Enter Parameters

Options:
Switch sites
loading Hold tight while we fetch your results