Complete the code to insert a new record into the table.
INSERT INTO employees (name, age) VALUES ([1], 30);
The value for a text field must be enclosed in single quotes in SQL. So, 'John' is correct.
Complete the code to update the age of an employee named 'Alice'.
UPDATE employees SET age = 35 WHERE name = [1];
In SQL, string literals must be enclosed in single quotes. So, 'Alice' is correct.
Fix the error in the DELETE statement to remove employees older than 60.
DELETE FROM employees WHERE age [1] 60;
To delete employees older than 60, the condition must be age > 60.
Fill both blanks to update the salary of employees in the 'Sales' department to 50000.
UPDATE employees SET salary = [1] WHERE department [2] 'Sales';
The salary should be set to 50000, and the department must equal 'Sales' to update only those employees.
Fill all three blanks to insert a new employee with name 'Emma', age 28, and department 'HR'.
INSERT INTO employees (name, age, department) VALUES ([1], [2], [3]);
Text values like name and department need single quotes. Age is a number and does not need quotes.