Complete the code to remove the entire table named 'employees'.
DROP TABLE [1];The DROP TABLE command deletes the entire table named 'employees' including its structure and data.
Complete the code to remove all rows from the 'orders' table but keep its structure.
TRUNCATE TABLE [1];The TRUNCATE TABLE command deletes all rows from the 'orders' table but keeps the table structure intact.
Fix the error in the code to delete all data from 'customers' but keep the table.
DELETE FROM [1];The DELETE FROM statement removes all rows from the 'customers' table but keeps the table structure.
Fill both blanks to create a command that deletes all rows from 'products' quickly and resets auto-increment.
TRUNCATE TABLE [1]; -- This [2] the table data and resets auto-increment
TRUNCATE TABLE products; quickly removes all data and resets the auto-increment counter.
Fill all three blanks to write a command that deletes the 'sessions' table and then recreates it empty.
DROP TABLE IF EXISTS [1]; CREATE TABLE [2] (id INT PRIMARY KEY AUTO_INCREMENT, user_id INT); TRUNCATE TABLE [3];
This sequence drops the 'sessions' table if it exists, recreates it with columns, and truncates it to ensure it's empty.