Question: Two related tables COURSE and COURSE REGISTRATION already exist with their primary keys. Both tables include a column courselD courselD is the primary key column

Two related tables COURSE and COURSE REGISTRATION

Two related tables COURSE and COURSE REGISTRATION already exist with their primary keys. Both tables include a column courselD courselD is the primary key column in COURSE Which of the following SQL will correctly create a foreign key using column courseld in COURSE REGISTRATION table? ALTER TABLE [COURSE REGISTRATION] ADD CONSTRAINT FK1 FOREIGN KEY (courseID) REFERENCES COURSE( [PRIMARY KEY]) i ALTER TABLE [COURSE REGISTRATION] ADD CONSTRAINT FK1 FOREIGN KEY (courseID) REFERENCES (courseID) ; ALTER TABLE [COURSE REGISTRATION] ADD CONSTRAINT FK1 (courseID) FOREIGN KEY COURSE (courseID) i ALTER TABLE [COURSE REGISTRATION] ADD CONSTRAINT FK1 FOREIGN KEY (courseID) REFERENCES COURSE (courseID) ; ALTER TABLE (COURSE REGISTRATION] ADD CONSTRAINT FK1

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 General Management Questions!