
Ultimate access to all questions.
The data engineering team has a Delta table called employees that contains the employees' personal information, including their gross salaries. Which of the following code blocks will ensure the table only retains employees with a salary greater than 3000?
A
SELECT CASE WHEN salary <= 3000 THEN DELETE ELSE UPDATE END FROM employees;
B
DELETE FROM employees WHERE salary <= 3000;
C
UPDATE employees WHERE salary > 3000 WHEN MATCHED SELECT;
D
DELETE FROM employees WHERE salary > 3000;
E
UPDATE employees WHERE salary <= 3000 WHEN MATCHED DELETE;