結果 : using max in case statement sql