Given the following table:
Employee Salary Amount
Smith 75, 000
Jones 60, 000
Williams 55, 000
White 35, 000
Johnson 105, 000
Company X and Company Y have merged to become Company Z. The CEO of Company Z wants to know how many employees fall in the same salary range after the merger because of the concern that there are now too many employees in the "Over $100K" range.
Which CASE expression will determine the salary range for an employee?
- CASE
WHEN salary_amount < 50000 THEN "Under $50K"
WHEN salary_amount < 75000 THEN "Between $50K and $75K"
WHEN salary_amount < 100000 THEN "Between $75K and $100K"
ELSE "Over $100K"
END
- CASEsalary_amount
WHEN salary_amount < 50000 THEN "Under $50K"
WHEN salary_amount < 75000 THEN "Between $50K and $75K"
WHEN salary_amount < 100000 THEN "Between $75K and $100K"
ELSE "Over $100K"
END
- CASE salary_amount
WHEN < 50000 THEN "Under $50K"
WHEN < 75000 THEN "Between $50K and $75K"
WHEN < 100000 THEN "Between $75K and $100K"
ELSE "Over $100K"
END
- CASE
WHERE salary_amount < 50000 THEN "Under $50K"
WHERE salary_amount < 75000 THEN "Between $50K and $75K"
WHERE salary_amount < 100000 THEN "Between $75K and $100K"
OR "Over $100K"
END
Reveal Solution
Next Question