MBA 664 Database Management

Slides:



Advertisements
Similar presentations
THE EXTENDED ENTITY RELATIONSHIP MODEL (EERM)
Advertisements

1 © Prentice Hall, 2002 Chapter 4: The Enhanced E-R Model and Business Rules Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Chapter 4: The Enhanced ER Model and Business Rules
1 Chapter 4 The Enhanced ER Model and Business Rules.
Chapter 3: The Enhanced E-R Model
Basic notation for supertype/subtype relationships
Enhanced Entity-Relationship Modeling. Strong and Weak Entity Types Strong entity: Each object is uniquely identifiable using primary key of that entity.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: The Enhanced E-R Model Modern Database Management 10 th Edition Jeffrey A. Hoffer,
Chapter 3  Define terms  Understand use of supertype/subtype relationships  Understand use of specialization and generalization techniques  Specify.
1 © Prentice Hall, 2002 Chapter 4: The Enhanced E-R Model and Business Rules Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 CHAPTER 4: THE ENHANCED E-R MODEL Modern Database Management 11 th Edition Jeffrey.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 6 Advanced Data Modeling.
CHAPTER 3: THE ENHANCED E-R MODEL © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer,
1 © Prentice Hall, 2002 Chapter 4: The Enhanced E-R Model and Business Rules Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Chapter 4 © 2005 by Prentice Hall 1 Objectives Definition of terms Definition of terms Use of supertype/subtype relationships Use of supertype/subtype.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 4 Enhanced Entity-Relationship (EER) Modeling.
Chapter 4: The Enhanced ER Model and Business Rules
The Enhanced E-R (EER) Model
IS 4420 Database Fundamentals Chapter 4: The Enhanced ER Model and Business Rules Leon Chen.
Chapter 4: The Enhanced E-R Model and Business Rules
1 Chapter 4 Enhanced E-R Model. 2 Supertypes and Subtypes Subtype: A subgrouping of the entities in an entity type which has attributes that are distinct.
Chapter 3: The Enhanced E-R Model
1 Chapter 4: The Enhanced ER Model and Business Rules.
Class Agenda – 04/04/2006 Discuss database modeling issues
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: The Enhanced E-R Model Modern Database Management 10 th Edition Jeffrey A. Hoffer,
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 The Enhanced Entity Relationship Diagrams (E-ERDs)
Chapter 4: The Enhanced ER Model and Business Rules
Chapter 4 1 Chapter 4: The Enhanced ER Model and Business Rules Modern Database Management Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden.
Chapter 3: The Enhanced E-R Model
1 The Enhanced Entity Relationship Diagrams (E-ERDs)
Enhanced Entity-Relationship and Object Modeling Chapter 4
Chapter 3: The Enhanced E-R Model
CHAPTER 3: THE ENHANCED E-R MODEL © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer,
Enhanced Entity-Relationship (EER) Modeling. Slide 4- 2 Chapter Outline EER stands for Enhanced ER or Extended ER EER Model Concepts Includes all modeling.
© 2011 Pearson Education 1 Chapter 3: Advanced Database Analysis Modern Database Management 10 th Edition, International Edition Jeffrey A. Hoffer, V.
CHAPTER 3: THE ENHANCED E-R MODEL © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer,
Database Systems Supertypes and Subtypes Lecture # 10.
Database Management System Prepared by Dr. Ahmed El-Ragal Reviewed & Presented By Mr. Mahmoud Rafeek Alfarra College Of Science & Technology- Khan younis.
Entity Relationship Modeling
Enhanced Entity-Relationship Modeling
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 4: The Enhanced E-R Model and Business Rules Modern Database Management 9 th Edition.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 4: The Enhanced E-R Model Modern Database Management 9 th Edition Jeffrey A. Hoffer,
Advance Database Engineering 1 Chapter 4: The Enhanced ER Model and Business Rules Modern Database Management 7 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 3: THE ENHANCED.
© 2005 by Prentice Hall 1 Chapter 4: The Enhanced ER Model and Business Rules Modern Database Management 7 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Enhanced Entity-Relationship (EER) Model
The Enhanced Entity- Relationship (EER) Model
The Enhanced E-R Model and Business Rules
LECTURE 4: Chapter 4: The Enhanced E-R Model
Advanced Database Analysis
Chapter 4: The Enhanced E-R Model and Business Rules
The Enhanced Entity- Relationship (EER) Model
Session 2 Welcome: The sixth learning sequence
Chapter 4: The Enhanced ER Model and Business Rules
Super Entity & Sub Entity
Database Management System 1 (ITED123A)
Chapter 3: The Enhanced E-R Model
Overview of Entity‐Relationship Model
CHAPTER 3: THE ENHANCED E-R MODEL
CS4222 Principles of Database System
Sampath Jayarathna Cal Poly Pomona
Database Management System
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Database EER.
Sampath Jayarathna Cal Poly Pomona
Weak Entities (cont…) Entities that do not have key attributes of their own Related to specific entities from another entity type plus their own attributes.
Enhanced Entity-Relationship (EER) Modeling
CGS 2545: Database Concepts Summer 2006
Presentation transcript:

MBA 664 Database Management Dave Salisbury salisbury@udayton.edu (email) http://www.davesalisbury.com/ (web site)

Evolution of the E-R Model Basic E-R Model nearly 25 years old complex data relationships and new database technology have outgrown it in some respects Enhanced E-R Model a response to the shortcomings of the basic E-R model not universally agreed upon in some respects introduced the supertype/subtype relationship

Supertype/Subtype Relationships Supertype (example: Employee) a generic entity that has a relationship with one or more subtypes Subtype (example: Manager) a subgrouping of a supertype entity that is meaningful to an organization shares all attributes of its supertype, but also has unique attributes of its own and/or : has relationships with other entities distinct from those of other subtypes

Supertype/Subtype Notation Delta & Pine Land Company 11/25/97 Supertype/Subtype Notation

The student example STUDENT UNDERGRAD STUDENT GRAD STUDENT

Two Rules for When to Use Supertype/Subtypes Use this type of relationship when either (or both) of the following are present: When there are attributes that apply to some (but not all) of the instances of an entity type When the instances of a subtype participate in a relationship unique to that subtype

Attribute Inheritance “The property by which subtype entities inherit values of all attributes of the supertype. This important property makes it unnecessary to include supertype attributes redundantly with the subtypes.”

Supertype/Subtype Example 1 Hourly_Rate EMPLOYEE SSN Name City/State/Zip Telephone CONSULTANT SALARIED HOURLY Annual_Salary Stock_Option Contract_Number Billing_Rate

Supertype/Subtype Relationships in a Hospital

Two Processes to Develop Supertype/Subtypes Generalization The process of defining a more general entity type from a set of more specialized entity types A “bottom-up” approach Specialization The process of defining one or more subtypes of a general entity based on distinguishing attri-butes or relationships A “top-down” approach Both approaches can be used together

Supertype/Subtype Constraints Completeness Addresses the question of whether an instance of a supertype must also be a member of at least one subtype Disjointness Addresses the question of whether an instance of a supertype may simultaneously be a member of two (or more) subtypes

Completeness Constraint: Two Possible Rules Total Specialization Rule (Double-Line) Specifies that each entity instance of the supertype must be a member of some subtype in the relationship (Example: all STUDENTS are either UNDERGRADUATE or GRADUATE students) Partial Specialization Rule (Single-line) Specifies that an entity instance of the supertype is allowed to not belong to any subtype (Example: FACULTY and STAFF are not the only possible members of the entity EMPLOYEE)

Completeness constraint Total specialization Partial specialization

Disjointed constraint Can an entity instance simultaneously be a member of two or more subtypes? Disjoint rule Overlap rule

Subtype discriminators Attribute of the supertype whose value determines to which subtype an instance belongs

What does that look like?

Yet another example….

Supertype/subtype hierarchy Arrangement of super- and subtypes where each subtype has only one supertype.

Another example...