結果 : sql aggregate functions in case statements