THE ENHANCED ER (EER) MODEL CHAPTER 8 (6/E) CHAPTER 4 (5/E)

Slides:



Advertisements
Similar presentations
© Shamkant B. Navathe CC. © Shamkant B. Navathe CC Chapter 4 - Part I Enhanced Entity-Relationship and UML Modeling Copyright © 2004 Ramez Elmasri and.
Advertisements

Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 The Enhanced Entity- Relationship (EER) Model.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Conceptual Data Modeling Using Entities and Relationships.
Enhanced Entity-Relationship and UML Modeling
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 4 Enhanced Entity-Relationship (EER) Modeling.
1 Enhanced Entity Relationship Modelling EER Model Concepts Includes all basic ER modeling concepts Additional concepts: subclasses/superclasses specialization/generalization.
The Enhanced Entity- Relationship (EER) Model
Enhanced ER modeling techniques Transparencies
December 4, 2002 Data Modeling – James Cohen Enhanced Entity Relationship (EER) Model Presented by James Cohen.
Chapter 4 The Enhanced Entity-Relationship (EER) Model
© Shamkant B. Navathe CC METU Department of Computer Eng Ceng 302 Introduction to DBMS Enhanced Entity-Relationship (EER) Model by Pinar Senkul resources:
Chapter 41 Enhanced Entity-Relationship and Object Modeling.
EXTENDED-ER (EER) MODEL CONCEPTS. Enhanced-ER (EER) Model Concepts  Basic ER diagram + more concepts =EER model  Additional concepts:  Subclasses/superclasses.
Specialization and generalization
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1 EER stands for Enhanced ER or Extended ER EER Model Concepts Includes all modeling concepts.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 The Enhanced Entity- Relationship (EER) Model.
MODELING OF UNION TYPES USING CATEGORIES
Enhanced Entity-Relationship and UML Modeling. Enhanced-ER (EER) Model Concepts Includes all modeling concepts of basic ER Additional concepts: subclasses/superclasses,
Enhanced Entity-Relationship Model (EER) 1. Enhanced-ER (EER) Model Concepts Includes all modeling concepts of basic ER Additional concepts: subclasses/superclasses,
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 The Enhanced Entry-Relationship (EER) Model.
1 CSE 480: Database Systems Lecture 4: Enhanced Entity-Relationship Modeling Reference: Read Chapter 8.1 – 8.5 of the textbook.
© Shamkant B. Navathe CC. © Shamkant B. Navathe CC Chapter 4 - Part I Enhanced Entity-Relationship and UML Modeling Copyright © 2004 Ramez Elmasri and.
Enhanced Entity – Relationship (EER) and Object Modeling (Based on Chapter 4 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 4)
Database Systems: Enhanced Entity-Relationship Modeling Dr. Taysir Hassan Abdel Hamid.
Enhanced Entity-Relationship (EER) Modeling. Slide 4- 2 Chapter Outline EER stands for Enhanced ER or Extended ER EER Model Concepts Includes all modeling.
1 CSBP430 – Database Systems Chapter 4: Enhanced Entity– Relationship and Object Modeling Elarbi Badidi College of Information Technology United Arab Emirates.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Ramez Elmasri and Shamkant Navathe Enhanced-ER (EER) Model Concepts.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 4 Enhanced Entity-Relationship (EER) Modeling.
Slide 4-1 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Revised by IB & SAM, Fasilkom UI, 2005 Exercise 1. a property or description.
© Shamkant B. Navathe CC Enhanced Entity-Relationship Copyright © 2004 Ramez Elmasri and Shamkant Navathe.
Topic 4 - Part I Enhanced Entity-Relationship and UML Modeling
Enhanced Entity-Relationship and UML Modeling. 2.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 4- 1.
Chapter 4_part2: The Enhanced Entity-Relationship (EER) Model.
Database Systems 主講人 : 陳建源 日期 :99/10/19 研究室 : 法 Chapter 4 Enhanced Entity-Relationship and Object Modeling.
CSE202 Database Management Systems
Databases (CS507) CHAPTER 7.
Enhanced Entity-Relationship (EER) Model
The Enhanced Entity- Relationship (EER) Model
Enhanced Entity-Relationship Modeling
Enhanced Entity-Relationship Modeling
Enhanced Entity-Relationship and Object Modeling Objectives
© Shamkant B. Navathe CC.
Conceptual Design & ERD Modelling
Enhanced Entity-Relationship (EER) Modeling
The Enhanced Entity- Relationship (EER) Model
Enhanced Entity-Relationship (EER) Modeling
Session 2 Welcome: The sixth learning sequence
Enhanced Entity-Relationship (EER) Modeling
Enhanced ER Modeling Transparencies
© Shamkant B. Navathe CC.
Enhanced Entity-Relationship Modeling
© Shamkant B. Navathe CC.
CS4222 Principles of Database System
Enhanced Entity-Relationship Modeling Transparencies
Enhanced Entity-Relationship Modeling
CS4222 Principles of Database System
Sampath Jayarathna Cal Poly Pomona
ENHANCED ENTITY-RELATIONSHIP (EER) MODEL
Sampath Jayarathna Cal Poly Pomona
© Shamkant B. Navathe CC.
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship Modeling
Enhanced Entity-Relationship (EER) Modeling
Presentation transcript:

THE ENHANCED ER (EER) MODEL CHAPTER 8 (6/E) CHAPTER 4 (5/E)

LECTURE OUTLINE  Extending the ER model Created to design more accurate database schemas Reflect the data properties and constraints more precisely Address more complex requirements Subclasses, Superclasses, and Inheritance Specialization and Generalization Modeling of UNION Types Using Categories 2

SPECIALIZATION AND INHERITANCE  Specialization Process of defining a set of subclasses of an entity type Defined on the basis of some distinguishing characteristic of the entities in the superclass  Describing the relationship Superclass/subclass or Class/subclass Supertype/subtype or Type/subtype  Subclass can define: Specific attributes Specific relationship types  Subclass can be a subclass wrt more than one superclass  Type inheritance Subclass entity has all attributes and participates in all relationships of superclass Multiple inheritance if more than one superclass 3

GENERALIZATION  Generalization Process of defining a more general entity type from given entity types  Reverse process of specialization  Generalize into a single superclass Original entity types are specialized subclasses Entities in generalization must all come from subclasses 4

 e8 e8  e2 e2  e1 e1  e7 e7  e4 e4  e3 e3  e6 e6  e5 e5  e 10  e9 e9 EMPLOYEE SECRETARY ENGINEER TECHNICIAN SPECIALIZED ENTITIES  Every technician/secretary/engineer is an employee.  Not every employee of superclass must be in a subclass (unless specified as generalization).  All properties of employee (attributes and relationships) are inherited by specialized subclasses.  Specialized entities might have additional attributes and be involved in additional relationships.  Subclasses may be disjoint or overlapping. MANAGER 5

CONSTRAINTS ON SUBCLASSES  Disjointness constraint Specifies that the subclasses of the specialization must be disjoint  Completeness constraint Specifies that every superclass entity must be in a subclass Required of generalization  Disjointness and completeness constraints are independent constraints 6

EER DIAGRAM WITH SUBCLASSES 7

REFINING CONCEPTUAL SCHEMAS  Using specialization Starting with entity type, define subclasses by successive specialization Top-down conceptual refinement  Using generalization Starting with entity type, define superclasses by successive generalization Bottom-up conceptual synthesis 8

MODELING WITH UNION TYPES Union type or category Represents a single superclass/subclass relationship with more than one superclass Subclass represents a collection of objects that is a subset of the UNION of distinct entity types Attribute inheritance works more selectively Category can be total or partial  Some modeling methodologies do not have union types Usually (always?) clearer to use specification/generalization 9

UNION TYPES 10

REWRITING UNION AS SPECIALIZATION 11 BANK COMPANYPERSON OWNER REGISTERED VEHICLE TRUCKCAR OWNS ⋃ ⋃ ⋃ ⋂ oBANK oCOMPANY oPERSON OWNER REGISTERED VEHICLE rTRUCKrCAR OWNS d ⋃ ⋂ BANK COMPANYPERSON ⋃ ⋃ TRUCKCAR ⋃ ⋃ ⋃ d

12

DESIGN CHOICES  Many specializations/generalizations can be defined to make the conceptual model accurate Constrain as disjoint/overlapping or total/partial as needed Driven by rules in miniworld being modeled  If all the subclasses of a specialization/generalization have few specific attributes and no specific relationships Can be merged into the superclass C Include in C one or more “type” attributes that specify the (virtual) subclasses to which each entity belongs  Union types should generally be avoided 13

LECTURE SUMMARY  Enhanced ER or EER model Extensions to ER model that improve its representational capabilities Subclass and its superclass Category or union type EER diagrams 14