結果 : sql group by case statement