Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles
SELECT TOP 1 YEAR(CreationDate) AS Year , MONTH(CreationDate) AS Month, PostTypeID, COUNT(*) AS cnt FROM posts WHERE PostTypeID = 1 GROUP BY YEAR(CreationDate), MONTH(CreationDate), PostTypeID ORDER BY cnt DESC;