Complete the code to start a searched CASE expression.
SELECT CASE [1] END AS result FROM orders;The searched CASE starts with CASE followed by one or more WHEN condition THEN result clauses.
Complete the code to add an ELSE clause to the searched CASE.
SELECT CASE WHEN score >= 90 THEN 'A' [1] END AS grade FROM students;
The ELSE clause provides a default result if no WHEN condition matches.
Fix the error in the searched CASE by completing the missing WHEN clause.
SELECT CASE WHEN age < 18 THEN 'Minor' [1] END AS category FROM people;
The searched CASE needs a WHEN clause for adults with condition age >= 18.
Fill both blanks to complete the searched CASE that categorizes salary.
SELECT CASE [1] THEN 'High' [2] 'Low' END AS salary_level FROM employees;
The CASE starts with WHEN salary > 5000 and uses ELSE for other cases.
Fill both blanks to complete the searched CASE that assigns labels based on score ranges.
SELECT CASE [1] THEN 'Excellent' WHEN score >= 70 THEN 'Good' [2] 'Poor' END AS performance FROM results;
The CASE uses WHEN score >= 90 THEN 'Excellent', WHEN score >= 70 THEN 'Good', and ELSE 'Poor' for scores below 70.