結果 : sql group by clause with case statement