Complete the code to delete the table named 'employees'.
DROP TABLE [1];The correct table name is 'employees'. The DROP TABLE command deletes the entire table.
Complete the code to add a new column 'age' of type INTEGER to the 'users' table.
ALTER TABLE users [1] age INTEGER;To add a new column, use 'ADD COLUMN'. This adds 'age' as an INTEGER to 'users'.
Fix the error in the code to remove the column 'salary' from the 'staff' table.
ALTER TABLE staff [1] salary;The correct syntax to remove a column is 'DROP COLUMN'. Other options are not valid SQL commands.
Fill both blanks to rename the table 'orders' to 'customer_orders'.
ALTER TABLE [1] [2] customer_orders;
To rename a table, use 'ALTER TABLE old_name RENAME TO new_name;'. Here, 'orders' is the old name and 'RENAME TO' is the command.
Fill all three blanks to change the data type of the 'price' column in 'products' table to DECIMAL(10,2).
ALTER TABLE [1] [2] price [3] DECIMAL(10,2);
The correct syntax to change a column's data type is 'ALTER TABLE table_name CHANGE COLUMN column_name new_column_definition;'. Here, 'products' is the table, 'CHANGE COLUMN' is the command, and 'MODIFY COLUMN' is not used in this syntax. The third blank should be the new column name or omitted depending on SQL dialect, but 'SET DATA TYPE' is not standard. The original answer had an incorrect third blank.