Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation
SELECT x.year y, x.month m, 100 - Cast(x.posts as money)/Cast(x1.posts as money)*100 perc FROM (SELECT Year(CreationDate) year, Month(CreationDate) month, Count(PostTypeId) posts FROM Posts GROUP BY Year(CreationDate) , Month(CreationDate)) x JOIN (SELECT Year(CreationDate) year, Month(CreationDate) month, Count(PostTypeId) posts FROM Posts GROUP BY Year(CreationDate) , Month(CreationDate)) x1 on x.year =x1.year and x.month - x1.month = 1 and x.posts < x1.posts ORDER BY y,m