結果 : sql case statement with group by