Count of questions with tag over time

0

Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS Meta

Q&A about the site for administrators, end users, developers and designers for Craft CMS

SET DATEFIRST 7
SELECT 
  DATEADD(week, DATEDIFF(day, '20000109', CreationDate) / 7, '20000109') AS [WEEK]
  , COUNT(DISTINCT Posts.Id), ISNULL(COUNT(DISTINCT Posts.Id),0)
FROM Posts
FULL JOIN PostTags ON PostTags.PostId = Posts.Id
FULL JOIN Tags ON PostTags.TagId = Tags.Id
WHERE Tags.TagName like 'bigcommerce' AND PostTypeId = 1 AND CreationDate > '2013-01-06'
GROUP BY  DATEADD(week, DATEDIFF(day, '20000109', CreationDate) / 7, '20000109')
ORDER BY [WEEK] DESC

Enter Parameters

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