Boomi popularity

0

Please login or register to vote for this query.

(click on this box to dismiss)

Arqade Meta

Q&A about the site for passionate videogamers on all platforms

DECLARE @Tag nvarchar(25) = 'Boomi';

SELECT
  COUNT(UniqueId), WeekStart
FROM 
(
  SELECT
    Posts.Id AS UniqueId, 
    dateadd(week, datediff(day, '20000109', Posts.CreationDate) / 7, '20000109') AS WeekStart  
  FROM Tags
    INNER JOIN PostTags ON PostTags.TagId = Tags.Id
    INNER JOIN Posts ON Posts.Id = PostTags.PostId
  WHERE
    Tags.TagName = @Tag and
    Posts.PostTypeId = 1 -- Questions
) RelevantQuestionsByWeek
GROUP BY WeekStart;

Enter Parameters

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