Question: Based on the following information: CREATE TABLE CUSTOMERS( ID INT NOT NULL, NAME VARCHAR (20) NOT NULL, AGE INT NOT NULL, ADDRESS CHAR (25).

Based on the following information: CREATE TABLE CUSTOMERS( ID INT NOT NULL,

Based on the following information: CREATE TABLE CUSTOMERS( ID INT NOT NULL, NAME VARCHAR (20) NOT NULL, AGE INT NOT NULL, ADDRESS CHAR (25). SALARY DECIMAL (18,2), PRIMARY KEY (ID) CREATE TABLE ORDERS ( ID INT NOT NULL DATE DATETIME, CUSTOMER ID INT. AMOUNT double, PRIMARY KEY (ID) How would you create a foreign key constraint on the ORDERS able to the CUSTOMER table? ( definition with the added code)

Step by Step Solution

3.58 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a foreign key constraint on the ORDERS table tha... View full answer

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!