Number of questions/answers/posts per day

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow Meta en español

Preguntas y respuestas sobre el sitio para programadores y profesionales de la informática

SELECT CAST(CreationDate AS DATE) AS [Date],
  COUNT(p.Id) AS [Total Posts],
  SUM(case when p.PostTypeId = 1 then 1 else 0 end) AS [Total Questions],
  SUM(case when p.PostTypeId = 2 then 1 else 0 end) AS [Total Answers]
FROM Posts p
GROUP BY CAST(CreationDate AS DATE)
ORDER BY CAST(CreationDate AS DATE)

Enter Parameters

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