Complete the code to create a new table named 'employees'.
CREATE [1] employees (id INT, name VARCHAR(100));
The CREATE TABLE statement is used to create a new table in the database.
Complete the code to insert a new row into the 'employees' table.
INSERT INTO employees [1] (1, 'Alice');
The INSERT INTO ... VALUES statement adds new rows to a table.
Fix the error in the query to select all columns from 'employees'.
SELECT [1] FROM employees;The asterisk (*) means select all columns from the table.
Fill both blanks to grant SELECT permission on 'employees' to user 'john'.
GRANT [1] ON employees TO [2];
The GRANT SELECT statement gives read permission to a user.
Fill all three blanks to update the name of employee with id 1 to 'Bob'.
UPDATE employees SET [1] = [2] WHERE [3] = 1;
The UPDATE statement changes data. We set the name to 'Bob' where id equals 1.
