結果 : sql case when with aggregate function