The Pizza Company Inventory Tracking Database - Njit.edu
The Pizza Company Inventory Tracking Database - Njit.edu
The Pizza Company Inventory Tracking Database - Njit.edu
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Relationships<br />
<strong>The</strong> <strong>Pizza</strong> <strong>Company</strong> <strong>Inventory</strong> <strong>Tracking</strong> <strong>Database</strong> 6<br />
Relationships describe how entities are associated with each other. <strong>The</strong>re are three types of relationships, one to one, one to many, and many to<br />
many. <strong>The</strong>se relationships define how entity instances relate. Relationships also provide us with critical information about entity interactions.<br />
In this project, there are six relationships. <strong>The</strong>re is a relation of one to many between Ingredients and Ingredient_Categories. <strong>The</strong> relationship<br />
between Orders and Delivery_Method and Orders and Employees are each one to one. <strong>The</strong> relationship between Orders and Suppliers is one to<br />
many because sometimes a request for ingredients from manufacturing contains items from one or more suppliers. Orders to Suppliers (items<br />
purchased) are always one order submitted to one supplier. <strong>The</strong> <strong>Inventory</strong>_Transaction table has a many to one relation to Ingredients and also a<br />
many to one relation to Orders. <strong>The</strong> five relationship names are:<br />
� Delivery_Method_Orders<br />
� Ingredient_Ingredient_Category<br />
� <strong>Inventory</strong>_Transaction_Ingredients<br />
� <strong>Inventory</strong>_Transaction_Orders<br />
� Orders_Employees<br />
� Orders_Suppliers<br />
Cardinality<br />
In general, each relationship can also have a minimum and maximum cardinality associated with it to show which relationships are optional,<br />
which are mandatory, and any numerical limitations on these relationships. <strong>The</strong> cardinality for this database is:<br />
� Delivery_Method_Orders is 1:1<br />
� Ingredient_Ingredient_Category is 1:1<br />
� <strong>Inventory</strong>_Transaction_Ingredients is 1:1<br />
� <strong>Inventory</strong>_Transaction_Orders: 1:N<br />
� Orders_Employees: is N:1<br />
� Orders_Suppliers is 1:1