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, 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
To create a foreign key constraint on the ORDERS table tha... View full answer
Get step-by-step solutions from verified subject matter experts
