Number of posts created over the last 365 days


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 count(*)
from PostsWithDeleted P
where datediff(second, P.CreationDate, getdate()) < 365 * 24 * 3600
  and P.PostTypeId in (1, 2)

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results