2019-06-12から1日間の記事一覧
週次で集計を行いたいときに、以下のようにweek関数とyear関数でグルーピングをしようとしました。 with temp as ( select week(from_unixtime(unixtime)) as week , year(from_unixtime(unixtime)) as year , id from table ) select week , year , count(i…
週次で集計を行いたいときに、以下のようにweek関数とyear関数でグルーピングをしようとしました。 with temp as ( select week(from_unixtime(unixtime)) as week , year(from_unixtime(unixtime)) as year , id from table ) select week , year , count(i…