Question: Given the CREATE TABLE statement below, add the following three constraints: - primary key constraint that (cid,sid) is a composite primary key. - foreign

Given the CREATE TABLE statement below, add the following three constraints: - primary key constraint that 

Given the CREATE TABLE statement below, add the following three constraints: - primary key constraint that (cid,sid) is a composite primary key. - foreign key constraint that cid is a foreign key that references cid in the table course - - constraint that Semester should be equal to "Sp21" CREATE TABLE Registration (cid INTEGER, sid INTEGER, Semester CHAR(10), );

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

the modified CREATE TABLE statement with the added constra... 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!