Question: Consider the following database schema and example instance: ingredient recipe foodItem stock Hints: - Underlined attribute form the primary key of a relation - The

 Consider the following database schema and example instance: ingredient recipe foodItem

Consider the following database schema and example instance: ingredient recipe foodItem stock Hints: - Underlined attribute form the primary key of a relation - The attribute recipe of relation ingredient is a foreign key to relation recipe. The attribute foodItem of relation ingredient is a foreign key to relation fooditem. - The attribute foodItem of relation stock is a foreign key to relation foodItem. a) [20 points] Write complete DDL statements to create these four tables, you must include in your create statements the appropriate actions (reject, cascade, set to NULL, set to default) for each referential integrity constraint

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 Databases Questions!