Complete the code to insert a new row into the users table.
INSERT INTO users (name, email) VALUES ([1], 'user@example.com');
The name value must be a string in quotes. 'Alice' is the correct value to insert.
Complete the code to insert a new product with a price into the products table.
INSERT INTO products (product_name, price) VALUES ('Book', [1]);
The price is a number and should not be in quotes. 20 is the correct numeric value.
Fix the error in the INSERT statement to add a new employee with auto-generated ID.
INSERT INTO employees ([1], name) VALUES (NULL, 'John');
The auto-generated key column is usually named 'id'. We insert NULL to let the database generate it.
Fill both blanks to insert a new order with auto-generated order_id and a customer name.
INSERT INTO orders ([1], customer_name) VALUES ([2], 'Emma');
Use the column name 'order_id' and insert NULL to let the database auto-generate the ID.
Fill all three blanks to insert a new record with auto-generated id, product name, and price.
INSERT INTO inventory ([1], [2], [3]) VALUES (NULL, 'Laptop', 1500);
The columns are 'id' for auto-generated key, 'product_name' for the product, and 'price' for the cost.