結果 : use distinct in case statement sql