結果 : group by sql with case statement