select CASE 'R' WHEN 'Y' THEN '等於Y' WHEN 'N' THEN '等於N' ELSE '不等於Y與N' END select CASE WHEN name > 'A' THEN 'A' WHEN name < 'B' THEN 'B' WHEN name = 'C' THEN 'C' ELSE '.....' END