SELECT COUNT(*) as number_of_posts, CONCAT(DATEPART(year,...


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for historians and history buffs

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

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results