How can we classify employees based on salary?
CASE evaluates sequential WHEN ... THEN conditions to return custom categorical labels.
Salary banding, customer tiering (Bronze/Silver/Gold), score categorization.
SELECT
name,
salary,
CASE
WHEN salary >= 100000 THEN 'High'
WHEN salary >= 70000 THEN 'Medium'
ELSE 'Low'
END AS salary_band
FROM employees;Practice typing production-grade SQL code for Basic CASE.