SELECT COUNT(*) as number_of_posts, PostTypeId, CONCAT(DA...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Meta Stack Exchange

Q&A for meta-discussion of the Stack Exchange family of Q&A websites

SELECT COUNT(*) as number_of_posts, PostTypeId,
CONCAT(DATEPART(year, CreationDate), '-', DATEPART(month, CreationDate)) AS year_month
FROM Posts
WHERE PostTypeId = 1
GROUP BY DATEPART(year, CreationDate), DATEPART(month, CreationDate),PostTypeId
ORDER BY number_of_posts DESC

Enter Parameters

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