Complete the code to delete 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 employees whose department is 'Sales'.
DELETE FROM employees WHERE department = '[1]';
The WHERE clause filters rows where the department is 'Sales'. Only those rows are deleted.
Fix the error in the DELETE statement to remove employees with salary less than 30000.
DELETE FROM employees WHERE salary [1] 30000;
The condition should be 'salary < 30000' to delete employees earning less than 30000.
Fill both blanks to delete employees who are in department 'HR' and have salary greater than 50000.
DELETE FROM employees WHERE department = '[1]' AND salary [2] 50000;
The condition filters employees in 'HR' with salary greater than 50000.
Fill all three blanks to delete employees whose name starts with 'J', are in 'Marketing' department, and have salary less than 40000.
DELETE FROM employees WHERE name LIKE '[1]' AND department = '[2]' AND salary [3] 40000;
The LIKE 'J%' matches names starting with 'J'. The department is 'Marketing' and salary less than 40000.