Six Blind Men and the Elephant. Basic ERD Symbology EntityRelationship AttributeMultivalued Attribute Associative Entity.

Slides:



Advertisements
Similar presentations
Entity Relationship Diagrams
Advertisements

Chapter 6: Entity-Relationship Model (part I)
ER Modeling Case Studies
Entity-Relationship (ER) Modeling
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Concepts of Database Management Seventh Edition Chapter 6 Database Design : ERD Model.
Data Modeling using the Entity-Relationship (ER) Model
Modeling the Data: Conceptual and Logical Data Modeling
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Data Modeling and Relational Database Design ISYS 650.
System Analysis - Data Modeling
Systems Analysis Requirements structuring Process Modeling Logic Modeling Data Modeling  Represents the contents and structure of the DFD’s data flows.
Entity Relationship Diagrams
Announcements n Difference between “excused” and “absent” n Office hours next week May not be here Monday Tuesday: 1:00 to 2:00 Wednesday: 10:00 to 11:00.
The Relational Database Model:
Ch5: Software Specification. 1 Descriptive specifications  Describe desired properties of system  Three types:
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Entity Relationship Diagrams
Information Resources Management January 30, 2001.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Modern Systems Analysis and Design Third Edition
Data Modeling and Entity- Relationship Model I IST2101.
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
MIS2502: Data Analytics Relational Data Modeling
Introduction to Databases
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Data Modeling ERM ERD.
Business Process Modeling
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 6 Structuring.
BIS 360 – Lecture Six (Part 2) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
Concepts and Terminology Introduction to Database.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
Domain Modeling Part1: Entity Relationship Diagram Chapter 4 pp part 1 1.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Customer Order Order Number Date Cust ID Last Name First Name State Amount Tax Rate Product 1 ID Product 1 Description Product 1 Quantity Product 2 ID.
Slide content original, slide layout from Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
Description and exemplification of entity-relationship modelling.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
MIS2502: Data Analytics Relational Data Modeling
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Data Modeling Supplement. Six Blind Men and the Elephant.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.
1 ASPP(DATABASE DESIGN) Database Design. 2 ASPP(DATABASE DESIGN) Objectives àDefine the terms entity, record, and attribute and discuss the various types.
Data Modeling and Entity-Relationship Model I
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Announcements n Difference between “excused” and “absent” n Office hours next week May not be here Monday Tuesday: 1:00 to 2:00 Wednesday: 10:00 to 11:00.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
C_ITIP211 LECTURER: E.DONDO. Unit 4 : DATA MODELING.
Entity-Relationship Model
Entity Relationship Model
SEEM3430: Information Systems Analysis and Design
MIS2502: Data Analytics Relational Data Modeling
Entity-Relationship Model
Entity Relationship Diagrams
MIS2502: Data Analytics Relational Data Modeling
MIS2502: Data Analytics Relational Data Modeling 2
Presentation transcript:

Six Blind Men and the Elephant

Basic ERD Symbology EntityRelationship AttributeMultivalued Attribute Associative Entity

Typical Business Relationships PRODUCTS CUSTOMERS are purchased by SUPPLIERS PRODUCTS supply ORDERS PRODUCTS contain ORDERS CUSTOMERS are placed by EMPLOYEES OFFICES are assigned to PRODUCTS STORES are sold in

Relationship Complexities (a) (b) (c) EMPLOYEE OFFICE EMPLOYEE DEPARTMENT STUDENT COURSE Each EMPLOYEE must be assigned to one and only one OFFICE. Each OFFICE may be assigned to one and only one EMPLOYEE. Each EMPLOYEE must be assigned to one and only one DEPARTMENT. Each DEPARTMENT may be in charge of zero or more EMPLOYEEs. Each STUDENT may be registered for zero, one, or many COURSEs. Each COURSE may be taken by zero, one, or many STUDENTs. assigned to in charge of registered for taken by

Unary Relationship PERSON COURSE EMPLOYEE married to is a prerequisite for has as a prerequisite managed by manage Each PERSON may be married to one and only one PERSON. Each COURSE may have zero, one, or many prerequisite COURSEs. Each COURSE may be a prerequisite for zero, one, or many COURSEs. Each EMPLOYEE must be managed by one and only one EMPLOYEE. Each EMPLOYEE may manage zero, one, or many EMPLOYEEs.

Binary Relationship EMPLOYEE STUDENT COURSE assigned to Each EMPLOYEE must be assigned to one and only one OFFICE. Each OFFICE may be assigned to one and only one EMPLOYEE. Each STUDENT may be registered for zero, one, or many COURSEs. Each COURSE may be taken by for zero, one, or many STUDENTs. Each CUSTOMER may place zero, one, or many ORDERs. Each ORDER must be placed by one and only one CUSTOMER. OFFICE CUSTOMER ORDER registered for taken by place placed by

Ternary Relationship STUDENT MAJOR ADVISOR Each STUDENT must have declared one or more MAJORs and be assigned to one or more ADVISORs. Each ADVISOR must be assigned to one or more STUDENTs and be responsible for one or more MAJORS. Each MAJOR must be declared by one or more STUDENTs and be assigned to one or more ADVISORs.

Associative Entity PASSENGER SCHEDULED FLIGHTS PASSENGER SCHEDULED FLIGHTS RESERVATION make reservation reserved by (a) (b)

Reading Relationships Each… entity1 relationship entity2 Each… CUSTOMER may be placing one or more ORDERS. ORDER must be placed by one and only one CUSTOMER must be or may be one or more or one and only one { }

Characteristics of a Good Data Model CharacteristicExplanation Pictorial A good data model should be an accurate graphical depiction of the entities and their relationships Rigorous and Specific A good data model should be specific with regard to the identification of all entities and their relationships and rigorous in the identification and specification of the attributes associated with each entity. Top-down Decomposable A good data model should be decomposable in the sense that the level of detail for each entity and its associated attributes can be investigated at various levels of detail or aggregation. Provide Focus A good data model should be focused on the data associated with a single system and contained within a single system boundary. Minimally Redundant A good data model will display minimal redundancy with regard to repeated entity types, data redundancy, and many-to-many relationships. Transparent The actual data and the physical structure of the database should be discernable from looking at the graphical data model. Easily Navigated A good data model should be laid out in an organized fashion to allow for the relationships among the entities to be easily followed. Predicts the Final System A good data model should be an accurate prediction of the physical implementation of the system.

First Normal Form ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDERED PRODUCT (repeats 1 – n times) PRODUCT ID QUANTITY DESCRIPTION UNIT PRICE EXTENDED PRICE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY DESCRIPTION UNIT PRICE EXTENDED PRICE (a)(b)

Second Normal Form ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY DESCRIPTION UNIT PRICE EXTENDED PRICE (a)(b) ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE EXTENDED PRICE PRODUCT PRODUCT ID DESCRIPTION

Third Normal Form (a)(b) ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE EXTENDED PRICE PRODUCT PRODUCT ID DESCRIPTION ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE PRODUCT PRODUCT ID DESCRIPTION CUSTOMER CUSTOMER NUMBER CUSTOMER NAME CUSTOMER STREET CUSTOMER CITY CUSTOMER STATE CUSTOMER ZIPCODE CUSTOMER PHONE

Denormalization (a)(b) ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE ORDER ORDER NUMBER ORDER DATE CUSTOMER NUMBER ORDER SUBTOTAL SALES TAX SHIPPING ORDER TOTAL ORDERED PRODUCT PRODUCT ID + ORDER NUMBER QUANTITY UNIT PRICE MTD SALES MONTH ID MONTHLY SALES

Fully Normalized ERD ORDER PRODUCT CUSTOMER ORDERED PRODUCT Customer Name Customer Name Customer Street Customer Street Customer City Customer City Customer State Customer State Customer Zipcode Customer Zipcode Customer Number Customer Number Customer Phone Customer Phone Order Date Order Number Customer Number Customer Number Sales Tax Order Subtotal Shipping Order Total Product ID + Order Number Quantity Unit Price Product ID Description

Selecting a Primary Key 99XXX99XX Criteria for SelectionExplanation Stability Choose a candidate key that will not likely change its value over time. EXAMPLE:UNSTABLESTABLE NAME+ADDRESS EMPLOYEE_ID Non-Null Choose a candidate key that is always guaranteed to have a non-null value. EXAMPLE:POSSIBLE NULLNON-NULL PHONE_NO SSN Non-Informational Do not create intelligent keys that attempt to convey information via their structure. EXAMPLE:INFORMATIONALNON-INFORMATIONAL Location Color Shelf Class Code Code Code Code Simplicity Wherever feasible, consider using a single attribute primary key instead of a multi-attribute primary key. EXAMPLE:SINGLE ATTRIBUTEMULTI-ATTRIBUTE ITEM_NO+COLOR ITEM_CODE

Identifying Entities and Relationships Question CategoryDescription Determine System Entities Find out what types of people, business units, things, places, events, materials, or other organizations are associated with, or interact with, the system and about which data must be maintained. Identify Entity Attributes Identify the characteristics by which each entity is associated or identified with. Determine Entity Keys Identify the most appropriate characteristic for each entity that uniquely distinguishes an instance of that entity from all other instances of the same entity. Determine Relationships and Degrees Identify the various events, transactions, or other business activities that infer an association between entities. Determine Cardinalities and Optionalities Identify the circumstances under which each of the relationships can occur. This requires an investigation into the various business rules under which the organization operates and the constraints imposed on the events which occur within the business environment.

Three Normal Forms Normal FormDescription First Normal Form (1NF) A relation is in 1NF if it contains no repeating data elements. Second Normal Form (2NF) A relation is in 2NF if it is in 1NF and contains no partial functional dependencies. Third Normal Form (3NF) A relation is in 3NF if it is in 2NF and contains no transitive dependencies.