Q&A for amateur radio enthusiasts
with migrations as ( select postID , comment target , year(creationdate) yr, month(creationDate) m from postHistory where posthistoryTypeid in (17, 35) ) Select count(postID) M_Count, target, yr FROM migrations where target is not null group by yr, target order by yr, target, count(postID)