Download presentation
Presentation is loading. Please wait.
Published byPhoebe Parker Modified over 9 years ago
1
Order Database – ER Diagram Prepared by Megan Foster Fall Semester 2014
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 CUSTOMERCustomer ID ORDEROrder ID PRODUCTProduct ID ORDERITEMOrderID and ProductID Step 1: Define Entity Classes and Primary Keys Business Rules 1. A customer can have unlimited orders. 2. A customer can have one order or have no order. 3. An order can only have one customer. 4. An order must have a product. 5. Orders must have one product 6. Many orders can have the same product. 7. A product can have multiple orders. 8. A product my have no orders.
4
Step 2: Define Relationships Among Entity Classes CUSTOMER PRODUCT ORDER ORDERITEM
5
Step 3: Define Attributes for each Table Customer IDCustomerNamePhoneNumberCustomerEmail CUSTOMER OrderIDCustomerNameOrderDate ORDER OrderIDProductID ORDERITEM ProductIDProductName PRODUCT
6
Step 3: Define Attributes for each Table CustomerIDFirstNameLastNameEmailAddressMajor LocationGender CUSTOMER OrderIDCustomerIDOrderDate ORDER OrderIDProductIDQuantity ORDERITEM ProductIDProductNamePriceBatchSizeDescription Type PRODUCT
7
List and Describe the Four Characteristics of a Relational Database. 1.Collection of Data 2.Logical Structure 3.Logical Ties (Foreign Key and Primary Key) 4.Integrity Constraints (Rules)
8
Step 4: Create Database http://students.uwyo.edu/Mfoste21/IMGT2400/CowboyCookies.accdb
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.