DECODE( col|expression, search1, resul1t
[, search2, result2, ...]
[, default] )
SELECT DECODE( job_id, 'HR', 1.1*salary
, 'DEV', 1.2*salary, salary) NEW_SALARY
FROM EMPLOYEE;
CASE exp WHEN compare_exp1 THEN return_exp1
[ WHEN compare_exp2 THEN return_exp2
ELSE else_expr ]
END
SELECT CASE job_id WHEN 'HR' THEN 1.1*salary
WHEN 'DEV' THEN 1.2*salary
ELSE salary END NEW_SALARY
FROM EMPLOYEE;