Complete the code to create a table named 'orders' with a primary key column 'order_id'.
CREATE TABLE orders (order_id [1]);The 'order_id' column should be an integer and set as the primary key to uniquely identify each order.
Complete the code to add a foreign key column 'customer_id' to the 'orders' table.
ALTER TABLE orders ADD COLUMN customer_id [1];The 'customer_id' should be an integer to match the primary key type of the 'customers' table.
Fix the error in the foreign key constraint syntax to link 'customer_id' in 'orders' to 'id' in 'customers'.
ALTER TABLE orders ADD CONSTRAINT fk_customer FOREIGN KEY (customer_id) REFERENCES customers([1]);The foreign key must reference the primary key column 'id' in the 'customers' table.
Fill both blanks to create a 'customers' table with a primary key 'id' and a 'name' column.
CREATE TABLE customers (id [1], name [2]);
The 'id' column is an integer primary key, and 'name' is a variable character string with max length 100.
Fill all three blanks to insert a new order with order_id 101, customer_id 5, and order_date '2024-06-01'.
INSERT INTO orders (order_id, customer_id, order_date) VALUES ([1], [2], '[3]');
The order_id is 101, customer_id is 5, and the order_date is '2024-06-01'.