Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles
SELECT TOP 5 FORMAT(CreationDate, 'yyyy-MM') AS year_month, COUNT(*) AS posts_count FROM posts GROUP BY FORMAT(CreationDate, 'yyyy-MM');