Number of questions in Stack Overflow

0

Please login or register to vote for this query.

(click on this box to dismiss)

Vegetarianism

Q&A for those committed to a vegan or vegetarian lifestyle and anyone interested in learning more

select 
  DATEADD(YEAR, DATEDIFF(YEAR, 0, CreationDate), 0) AS [YEAR]
  , COUNT(DISTINCT Posts.Id) AS Count
from posts 
where postTypeId = 1
--  AND CreationDate > '2018-01-01'
GROUP BY DATEADD(YEAR, DATEDIFF(YEAR, 0, CreationDate), 0)
ORDER BY [YEAR] DESC

Enter Parameters

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