new answers per month since 2018

0

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans Meta

Q&A about the site for music historians, critics, and fans

SELECT
  DATEFROMPARTS(YEAR(P.CreationDate), MONTH(P.CreationDate), 1) AS Date,
  CASE WHEN P.PostTypeId = 1 THEN 'questions' ELSE 'answers' END AS TYPE,
  COUNT(*) AS NewAnswers
FROM Posts P
WHERE P.PostTypeId IN (1, 2) -- Questions, Answers
  AND YEAR(P.CreationDate) >= 2020
GROUP BY
  DATEFROMPARTS(YEAR(P.CreationDate), MONTH(P.CreationDate), 1),
  P.PostTypeId
ORDER BY Date

Enter Parameters

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