結果 : max function in case statement in sql