2021-09-23から1日間の記事一覧
テーブルの構造とデータの状態です select * from bs_summary ; agg_code | debit | credit ----------+---------+-------- 1002 | 1000000 | 1001 | 1000000 | 2001 | | 800000 2002 | | 800000 (4 rows) 各列の合計を最後に出力する select coalesce(agg_c…
テーブルの構造とデータの状態です select * from bs_summary ; agg_code | debit | credit ----------+---------+-------- 1002 | 1000000 | 1001 | 1000000 | 2001 | | 800000 2002 | | 800000 (4 rows) 各列の合計を最後に出力する select coalesce(agg_c…