Count of questions with hexo tag over time

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT 
  DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS [MONTH]
  , COUNT(DISTINCT Posts.Id) AS Count
FROM Posts
INNER JOIN PostTags ON PostTags.PostId = Posts.Id
INNER JOIN Tags ON PostTags.TagId = Tags.Id
WHERE Tags.TagName like '%hexo%' AND PostTypeId = 1 AND CreationDate > '2012-01-01'
GROUP BY DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0)
ORDER BY [MONTH] DESC

Enter Parameters

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