1 Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.

Slides:



Advertisements
Similar presentations
Database Design: ER Modelling (Continued)
Advertisements

Lecture 7 Enhanced Entity-Relationship Modelling & Advanced Normalisation.
Chapter 12 Enhanced Entity-Relationship Modeling Transparencies © Pearson Education Limited 1995, 2005.
1 Pertemuan Perluasan E-R Matakuliah: >/ > Tahun: > Versi: >
Logical Database Design
© Shamkant B. Navathe CC. © Shamkant B. Navathe CC Chapter 4 - Part I Enhanced Entity-Relationship and UML Modeling Copyright © 2004 Ramez Elmasri and.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 4 Enhanced Entity-Relationship (EER) Modeling.
Lecture Eleven Entity-Relationship Modelling
Lecture Fourteen Methodology - Conceptual Database Design
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
1 Enhanced Entity Relationship Modelling EER Model Concepts Includes all basic ER modeling concepts Additional concepts: subclasses/superclasses specialization/generalization.
Enhanced ER modeling techniques Transparencies
Entity-Relationship (E-R) Model
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:
EXTENDED-ER (EER) MODEL CONCEPTS. Enhanced-ER (EER) Model Concepts  Basic ER diagram + more concepts =EER model  Additional concepts:  Subclasses/superclasses.
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.
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,
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Entities and Attributes
Entity Relationship Modeling
© 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)
THE ENHANCED ER (EER) MODEL CHAPTER 8 (6/E) CHAPTER 4 (5/E)
Entity-Relationship Modeling Based on Chapter 12.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
CSC271 Database Systems Lecture # 25. Summary: Previous Lecture  Structural constraints  Multiplicity  Cardinality  Participation  Connection traps.
Chapter 11 & 12 Entity-Relationship (E-R) Model Characteristics of E-R Model Components of E-R Model Example of E-R Model Enhanced E-R Model.
Enhanced Entity-Relationship (EER) Modeling. Slide 4- 2 Chapter Outline EER stands for Enhanced ER or Extended ER EER Model Concepts Includes all modeling.
Enhanced Entity-Relationship Modeling
Part3 Database Analysis and Design Techniques Chapter 05- Entity-Relationship Modeling Lu Wei College of Software and Microelectronics Northwestern Polytechnical.
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.
Chapter 4 Extended Entity-Relationship (EER)Model Incorporates Set-subset Relationships Incorporates Generalization Hierarchies Constraints: Coverage Constraints:
© Shamkant B. Navathe CC Enhanced Entity-Relationship Copyright © 2004 Ramez Elmasri and Shamkant Navathe.
Topic 4 - Part I Enhanced Entity-Relationship and UML Modeling
April 20022/CS/3X EER 1 Database Design Enhanced entity-relationship modelling John Wordsworth Department of Computer Science The University of Reading.
Basic ER modeling was adequate for simpler databases, but in the 1980’s more demanding databases required more extensive modeling requirements. Some such.
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.
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
The Enhanced Entity- Relationship (EER) Model
Session 2 Welcome: The sixth learning sequence
Enhanced ER Modeling Transparencies
Chapter 13 Enhanced Entity-Relationship Modeling
© Shamkant B. Navathe CC.
Enhanced Entity-Relationship Modeling
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
© Shamkant B. Navathe CC.
CS4222 Principles of Database System
Enhanced Entity-Relationship Modeling Transparencies
Enhanced Entity-Relationship Modeling Transparencies
Enhanced Entity-Relationship Modeling
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 Modeling
Presentation transcript:

1 Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture Twelve Enhanced Entity-Relationship Modelling Based on Chapter Twelve of this book:

2 Lecture 12 - Objectives u Limitations of basic concepts of the ER model and requirements to represent more complex applications using additional data modeling concepts. u Most useful additional data modeling concepts of Enhanced ER (EER) model called: –specialization/generalization –aggregation –composition.

3 Lecture 12 - Objectives u A diagrammatic technique for displaying specialization/generalization, aggregation, and composition in an EER diagram using UML.

4 Enhanced Entity-Relationship Model u Since 1980s there has been an increase in emergence of new database applications with more demanding requirements. u Basic concepts of ER modeling are not sufficient to represent requirements of newer, more complex applications. u Response is development of additional ‘semantic’ modeling concepts.

5 The Enhanced Entity-Relationship Model u Semantic concepts are incorporated into the original ER model and called the Enhanced Entity-Relationship (EER) model. u Examples of additional concepts of EER model are: –specialization / generalization –aggregation –composition.

6 Specialization / Generalization u Superclass –An entity type that includes one or more distinct subgroupings of its occurrences. u Subclass –A distinct subgrouping of occurrences of an entity type.

7 Specialization / Generalization u Superclass/subclass relationship is one- to-one (1:1). u Superclass may contain overlapping or distinct subclasses. u Not all members of a superclass need be a member of a subclass.

8 Specialization / Generalization u Attribute Inheritance –An entity in a subclass represents same ‘real world’ object as in superclass, and may possess subclass-specific attributes, as well as those associated with the superclass.

9 Specialization / Generalization u Specialization –Process of maximizing differences between members of an entity by identifying their distinguishing characteristics. u Generalization –Process of minimizing differences between entities by identifying their common characteristics.

10 AllStaff relation holding details of all staff

11 Specialization/generalization of Staff entity into subclasses representing job roles

12 Specialization/generalization of Staff entity into job roles and contracts of employment

13 EER diagram with shared subclass and subclass with its own subclass

14 Constraints on Specialization / Generalization u Two constraints that may apply to a specialization/generalization: –participation constraints –disjoint constraints. u Participation constraint –Determines whether every member in superclass must participate as a member of a subclass. –May be mandatory or optional.

15 Constraints on Specialization / Generalization u Disjoint constraint –Describes relationship between members of the subclasses and indicates whether member of a superclass can be a member of one, or more than one, subclass. –May be disjoint or nondisjoint.

16 Constraints on Specialization / Generalization u There are four categories of constraints of specialization and generalization: –mandatory and disjoint –optional and disjoint –mandatory and nondisjoint –optional and nondisjoint.

17 DreamHome worked example - Staff Superclass with Supervisor and Manager subclasses

18 DreamHome worked example - Owner Superclass with PrivateOwner and BusinessOwner subclasses

19 DreamHome worked example - Person superclass with Staff, PrivateOwner, and Client subclasses

20 EER diagram of Branch view of DreamHome with specialization/generalization

21 Aggregation u Represents a ‘has-a’ or ‘is-part-of’ relationship between entity types, where one represents the ‘whole’ and the other ‘the part’.

22 Examples of Aggregation

23 Composition u Specific form of aggregation that represents an association between entities, where there is a strong ownership and coincidental lifetime between the ‘whole’ and the ‘part’.

24 Example of Composition