Chapter Five – Data Modeling with the Entity-Relationship Model
Page 5-51
Cardinalities that we can infer from the reports are shown in blue in the table. In particular,
we can infer that:
• a COMPANY can produce several PRODUCTS because of the multiple lines in the
FDA Report. We will assume that only COMPANYs that produce PRODUCTS
listed in the database are to be listed in COMPANY. We will further assume that
each PRODUCT is produced by only one COMPANY.
We can also infer:
• the mandatory one-to-many relationships between:
1. PRODUCT, NUTRIENT and the ID-dependent associative entity PROD_NUTR.
2. PRODUCT, VITAMIN_IRON and the ID-dependent associate entity
PROD_VIT_IRON.
We can do this because Nutrition Information is required to be printed on PRODUCT
packaging, and since that information must include information about NUTRIENTs and
VITAMIN_IRON.
We need to check:
• the assumption stated above that only COMPANYs that produce PRODUCTs listed
in the database are to be listed in COMPANY.
Although it’s not a cardinality, we also need to check:
• how to handle COMPANY and SUPPLIER. These could be designed as subtypes