Number of questions per month

1

Please login or register to vote for this query.

(click on this box to dismiss)

Cognitive Sciences Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

SELECT
  eomonth(q.CreationDate) AS [Month],
  COUNT(q.Id) AS [Total Count],
  SUM(Case When q.DeletionDate IS NULL Then 1 Else 0 End) AS [# Not Deleted]
FROM PostsWithDeleted q
WHERE (q.CreationDate >= '##Date1?2000-01-01##') AND (q.CreationDate <= '##Date2?2021-01-01##')
  AND (q.PostTypeId=##type?1##)
---PostTypeId=1 means only questions  
GROUP BY eomonth(q.CreationDate)
ORDER BY eomonth(q.CreationDate)

Enter Parameters

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