結果 : postgresql case aggregate function