結果 : distinct in case statement sql