Question: Assume the Part table has been created, but there are no integrity constraints. Create the necessary integrity constraint to ensure that the only allowable values
Assume the Part table has been created, but there are no integrity constraints. Create the necessary integrity constraint to ensure that the only allowable values for the Class field are AP, HW, and SG. Ensure that the PartNum field is the primary key and that the PartNum field in the OrderLine table is a foreign key that must match the primary key of the Part table.
Step by Step Solution
3.43 Rating (162 Votes )
There are 3 Steps involved in it
SQL For the Part table CHECK Class IN AP HW SG PRIMARY KEY PartNum For the OrderLine table FOREIGN ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
671-CS-DB (982).docx
120 KBs Word File
