Complete the code to delete all rows from the table named 'employees'.
DELETE FROM [1];The correct table name is 'employees'. This command deletes all rows from that table.
Complete the code to delete only rows where the department is 'Sales'.
DELETE FROM employees WHERE department = [1];The condition must match 'Sales' to delete only those rows.
Fix the error in the DELETE statement that tries to remove employees with salary less than 30000.
DELETE FROM employees WHERE salary [1] 30000;
The operator '<' is needed to delete employees with salary less than 30000.
Fill both blanks to delete employees who joined before 2020 and work in the 'HR' department.
DELETE FROM employees WHERE join_year [1] 2020 AND department = [2];
The condition uses '<' to find years before 2020 and 'HR' as the department.
Fill all three blanks to delete employees with salary greater than 50000, in 'Marketing' department, who joined after 2018.
DELETE FROM employees WHERE salary [1] 50000 AND department = [2] AND join_year [3] 2018;
The conditions are salary > 50000, department = 'Marketing', and join_year > 2018.