プログラマーと熱狂的なプログラマーのためのサイトに関する質問と回答
select count(id), tags, right(left(CreationDate,11),4) as year, left(CreationDate,3) as month, sum(score) as score, sum(viewcount) as views, sum(answercount) as answers, sum(commentcount) as comments, sum(favoritecount) as favorites from posts where right(left(CreationDate,11),4) = 2013 and left(CreationDate,3) ='Oct' and tags is not null group by tags, right(left(CreationDate,11),4), left(CreationDate,3) -- order by count(id) for side a, order by tags for side b order by tags desc;