Download presentation
Presentation is loading. Please wait.
Published byTyrone Hamilton Modified over 8 years ago
1
Order Database – ER Diagram Prepared by Evan Hollister Spring 2016
2
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 Designing Databases with Entity Relationship Diagrams
3
Entity ClassPrimary Key CUSTOMERCustomerID ORDERSOrderID PRODUCTSProductID ORDERITEMOrderID ProductID Step 1: Define Entity Classes and Primary Keys Business Rules A customer may have no orders. A customer may have multiple orders Each order must have a customer Each order is made by only one customer Each order has at least one product Each order may consist of many products Each product may have multiple orders Each product may have no orders
4
Step 2: Define Relationships Among Entity Classes CUSTOMER PRODUCT ORDER
5
Step 3: Define Attributes for each Table CustomerIDLastNameFirstNameEmailAddressMajor LocationGender CUSTOMER OrderIDCustomerIDOrderDate ORDER ProductIDProductNamePriceBatchSizeDescription PRODUCT OrderIDProductIDQuantity ORDERITEM
6
Step 4: Create Database (DBMS system - Microsoft Access)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.