System Posts on SO

0

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
p.PostTypeId as [Post Type], 
  COUNT(*) as [Number of Posts]
FROM Posts p
LEFT JOIN PostTypes pt on pt.Id = p.PostTypeId
WHERE CreationDate > '2012-09-13' and CreationDate < '2013-09-13'
AND p.PostTypeId IN (1, 2) -- 1 is question, 2 is answer
GROUP BY  p.PostTypeId

Enter Parameters

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