1 Answer

+1 vote

Best answer

CASE expression is used like IF..THEN...ELSE logic in SQL statement without invoking procedures.
Example:
SELECT ename,
sal,
CASE sal WHEN 1000 THEN 'Low'
WHEN 5000 THEN 'High'
ELSE 'Medium'
END
FROM emp;