結果 : sql case when with group by