Order Database – ER Diagram By James Jennings
Designing Databases with Entity Relationship Diagrams Step 1: Define Entity Classes and Primary Keys Step 2: Define Relationships Among Entity Classes Step 3: Define Attributes for each Table Step 4: Create Database
Step 1: Define Entity Classes and Primary Keys Customer CustomerID Product ProductID Order OrderID Business Rules Customer may have multiple orders Customers may have no orders. Each order has one Customer Each order must have a Customer An Order must have one product An order may have multiple products A product may have multiple orders A product may have no orders
Step 2: Define Relationships Among Entity Classes CUSTOMER ORDER PRODUCT
Step 3: Define Attributes for each Table Customer CustomerID FirstName LastName emailAddress Major Location Gender Product ProductID ProductName Price BatchSize Description Type Order OrderID Customer Date Product Quantity
Step 3: Define Attributes for each Table Customer CustomerID FirstName LastName emailAddress Major Location Gender Product ProductID ProductName Price BatchSize Description Type OrderID OrderItem OrderID ProductID Quantity Order OrderID CustomerID Date ProductID Quantity
Step 2: Define Relationships Among Entity Classes CUSTOMER ORDER OrderItem PRODUCT
Step 4: Create Database http://students.uwyo.edu/jjennin7/imgt2400/JenningsDatabaseProject.accdb