Extending ER Diagrams (13) CPSC 356 Database Ellen Walker Hiram College (Includes figures from Database Systems: A Practical Approach to Design, Information.

Slides:



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

Data Modeling (CB 12) CPSC 356 Database Ellen Walker Hiram College (Includes figures from Database Systems by Connolly & Begg, © Addison Wesley 2002)
Advanced Data Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 6 Advanced Data Modelling
1 Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – EER Model –21th June.
Chapter 4 Conceptual Modeling of Databases with Entity-Relationship Diagrams and the Unified Modeling Language.
Copyright © 2004 Pearson Education, Inc.. Chapter 4 Enhanced Entity- Relationship and UML Modeling.
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.
1 Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.
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
December 4, 2002 Data Modeling – James Cohen Enhanced Entity Relationship (EER) Model Presented by James Cohen.
Chapter 4 The Enhanced Entity-Relationship (EER) Model
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 Modeling © 2002 by Dietrich and Urban1 ADVANCED DATABASE CONCEPTS Enhanced Entity Relationship Modeling Susan D. Urban and.
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,
Jennifer Widom UML UML Data Modeling. Jennifer Widom UML Modeling Data Modeling How to represent data for application  Relational model  with design.
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
Entities and Attributes
Databases Illuminated Chapter 8 The Enhanced Entity-Relationship Model and the Object-Relational Model.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 The Enhanced Entry-Relationship (EER) Model.
Entity Relationship Modeling
R McFadyen Chapter 7 Conceptual Data 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)
Database Systems: Enhanced Entity-Relationship Modeling Dr. Taysir Hassan Abdel Hamid.
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.
Weak Entity Sets A weak entity is an entity that cannot exist in a database unless another type of entity also exists in that database. Weak entity meets.
1 CSBP430 – Database Systems Chapter 4: Enhanced Entity– Relationship and Object Modeling Elarbi Badidi College of Information Technology United Arab Emirates.
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:
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 4 Enhanced Entity-Relationship (EER) Modeling.
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas.
© Shamkant B. Navathe CC Enhanced Entity-Relationship Copyright © 2004 Ramez Elmasri and Shamkant Navathe.
Topic 4 - Part I Enhanced Entity-Relationship and UML Modeling
Extended ER Modelling. Extended E-R Features: Specialization Top-down design process; we designate subgroupings within an entity set that are distinctive.
Basic ER modeling was adequate for simpler databases, but in the 1980’s more demanding databases required more extensive modeling requirements. Some such.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 3: THE ENHANCED.
Lecture 3 A short revision of ER and EER modelling See R. Elmasri, S.B. Navathe. Fundamentals of Database Systems (third edition) Addison-wesley. Chapter.
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.
Data Modeling Advanced Concepts Updated 20/4/2015 TMC2034 Database Concept and Design1.
IT 5433 LM2 ER & EER Model. Learning Objectives: Explain importance of data modeling Define and use the entity-relationship model Define E/R terms Describe.
Entity Relationship (E-R) Model
Enhanced Entity-Relationship (EER) Model
Enhanced Entity-Relationship Modeling
Enhanced Entity-Relationship Modeling
Session 2 Welcome: The sixth learning sequence
Enhanced ER Modeling Transparencies
Database EER.
UML UML Data Modeling.
Enhanced Entity-Relationship Modeling Transparencies
Enhanced Entity-Relationship Modeling
Sampath Jayarathna Cal Poly Pomona
Database EER.
ENHANCED ENTITY-RELATIONSHIP (EER) MODEL
Sampath Jayarathna Cal Poly Pomona
Enhanced Entity-Relationship Modeling
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship Modeling
Presentation transcript:

Extending ER Diagrams (13) CPSC 356 Database Ellen Walker Hiram College (Includes figures from Database Systems: A Practical Approach to Design, Information and Management, by Connolly and Begg, © Addison Wesley 2010)

Basic ER Diagram Cannot Capture Specialization/ Generalization Examples –Doctors and Nurses are Medical Staff –Staff includes Medical staff, Secretarial staff, Housekeeping staff, etc. Relationships might include Doctors, Medical Staff, and/or Staff ER diagram cannot represent the fact that Staff > Medical staff > doctors EER diagram can!

Entity Type Hierarchies An entity type E1 is a subclass of the entity type E2 when –Every entity instance of E1 is also an instance of E2 –Every attribute in E2 is also in E1 The opposite of a subclass is a superclass Subclasses are related to superclasses through the IS-A relationship

When to Use? When you have an entity that needs to have extra / different attributes “sometimes” When you have two entities that overlap on many or most of their attributes

Subclass / Superclass Example Doctor is a subclass of medical-staff Staff is a superclass of medical-staff Attributes –Staff - name, addr, salary –Med-staff - pager # –Doctor - license # Staff Medical-StaffAdmin-Staff DoctorNurse

Attribute Inheritance Each entity type inherits all attributes of its superclass(es) –Staff has name, address, salary –Medical staff has {n,a,s} + beeper-number –Doctor has {n, a, s, b#} + license # In EER diagram, inherited attributes only appear once (in the highest superclass)

Generalizing Type Hierarchies Multiple superclasses for the same subclass –A student-employee is both a student and an employee Overlapping subclasses –Subclasses of person are student and employee –There is at least one individual who is both a student and an employee Non-overlapping subclasses are called “disjoint”

Specialization of Staff (13.2)

Extended ER (EER) Diagram IS-A relationships Notation for disjoint (vs. overlapping) subclasses –Disjoint = “or”, overlapping = “and” Notation for “covering” –Can someone be staff without being Medical or administrative? –If so, “optional”; if not “mandatory”

More Staff Types (13.3)

Additional Semantic Relationships Aggregation and Composition –Collecting together related entities that represent ‘parts’ of a ‘whole’ –Aggregation (non-exclusive subpart): parts can change parents –Composition (exclusive subpart): single parent, very strong association - parts make no sense without parent –Examples: Branch (whole) has Staff (part)Aggregation Newspaper (whole) contains Story (part) Composition EER representation is diamond with arrow from “part” –Open for aggregation, closed for composition –(see 13.9, 13.10)