Question: CREATE TABLE purchase_order ( order_number int NOT NULL, order_name char(50) NOT NULL, customer_address char(50), customer_zip int, customer_city char (50), order_total varchar(50), CONSTRAINT purchase_order_pk PRIMARY KEY

CREATE TABLE purchase_order ( order_number int NOT NULL, order_name char(50) NOT NULL, customer_address char(50), customer_zip int, customer_city char (50), order_total varchar(50), CONSTRAINT purchase_order_pk PRIMARY KEY (order_number) );

What is the code to add the foreign key for this table? Can you please add the entire code with mine included. Thank you in advance.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!