Chapter 6 – Transforming Data Models into Database Designs
6.56 Answer question 5.61 if you have not already done so. Design a database for your
model in question 5.61(c). Your design should include a specification of tables and
attributes as well as primary, candidate, and foreign keys. Also specify how you will
enforce minimum cardinality. Document your minimum cardinality enforcement using
referential integrity actions for required parents, if any, and the form in Figure 6-29(b) for
required children, if any.
CompanyName: char(50) NOT NULL
IngredientID: int NOT NULL
IngredientID: int NOT NULL (FK)
NutientID: int NOT NULL (FK)
ProductOnlyAmt: numeric(6,2) NOT NULL
ProductOnlyAmtUnits: char(8) NOT NULL
ProductWithSkimMilkAmt: numeric(6,2) NOT NULL
ProductWithSkimMilkUnits: char(8) NOT NULL
ProductWithWholeMilkAmt: numeric(6,2) NOT NULL
ProductWithWholeMilkUnits: char(8) NOT NULL
IngredientID: int NOT NULL (FK)
SupplierName: char(50) NOT NULL (FK)