posts growth over last several years

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science Meta

Q&A about the site for scientists using computers to solve scientific problems

SELECT
CAST(DATEPART(year, Posts.CreationDate) AS VARCHAR(4)) + '-' +
CAST(DATEPART(month, Posts.CreationDate) AS VARCHAR(2)) as month_year,
    count(*) 
from
  Posts
where Posts.Tags LIKE '%youtube%'
    GROUP BY DATEPART(year, Posts.CreationDate), DATEPART(month, Posts.CreationDate)
    ORDER BY DATEPART(year, Posts.CreationDate), DATEPART(month, Posts.CreationDate)

Enter Parameters

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