December 4, 2002 Data Modeling – James Cohen Enhanced Entity Relationship (EER) Model Presented by James Cohen.

Slides:



Advertisements
Similar presentations
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,
Advertisements

© Shamkant B. Navathe CC. © Shamkant B. Navathe CC Chapter 4 - Part I Enhanced Entity-Relationship and UML Modeling Copyright © 2004 Ramez Elmasri and.
1 Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – EER Model –21th June.
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 and Object Modeling (Ch 4) Jan R McFadyen1 Class/subclass relationships Inheritance Specialization Generalization.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
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.
IS 4420 Database Fundamentals Chapter 4: The Enhanced ER Model and Business Rules Leon Chen.
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 © 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,
1 Chapter 4: The Enhanced ER Model and Business Rules.
Enhanced Entity-Relationship Model (EER) 1. Enhanced-ER (EER) Model Concepts Includes all modeling concepts of basic ER Additional concepts: subclasses/superclasses,
Entities and Attributes
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 The Enhanced Entry-Relationship (EER) Model.
Chapter 4: The Enhanced ER Model and Business Rules
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)
THE ENHANCED ER (EER) MODEL CHAPTER 8 (6/E) CHAPTER 4 (5/E)
Database Systems: Enhanced Entity-Relationship Modeling Dr. Taysir Hassan Abdel Hamid.
1 The Enhanced Entity Relationship Diagrams (E-ERDs)
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.
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
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.
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas.
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
© 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,
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.
Database Systems 主講人 : 陳建源 日期 :99/10/19 研究室 : 法 Chapter 4 Enhanced Entity-Relationship and Object Modeling.
Databases (CS507) CHAPTER 7.
Enhanced Entity-Relationship (EER) Model
The Enhanced Entity- Relationship (EER) Model
Enhanced Entity-Relationship and Object Modeling Objectives
© Shamkant B. Navathe CC.
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
© Shamkant B. Navathe CC.
© Shamkant B. Navathe CC.
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 (EER) Modeling
CS4222 Principles of Database System
Presentation transcript:

December 4, 2002 Data Modeling – James Cohen Enhanced Entity Relationship (EER) Model Presented by James Cohen

December 4, 2002Data Modeling – James Cohen The Entity (Review) Entity Relationship (ER) Model – represents an object Entity Relationship (ER) Model – represents an object Physical – person, car Physical – person, car Conceptual – school, company Conceptual – school, company ER model is based on the perception of the real world as a collection of objects with attributes ER model is based on the perception of the real world as a collection of objects with attributes Attributes – describe the entity Attributes – describe the entity Single, Multi-value Single, Multi-value Composite, Simple Composite, Simple Derived, Stored Derived, Stored

December 4, 2002Data Modeling – James Cohen What is an EER Model? Enhanced Entity Relationship (EER) – Data Modeling Enhanced Entity Relationship (EER) – Data Modeling EER shows complex relationships between objects in a database (multimedia, geographical). EER shows complex relationships between objects in a database (multimedia, geographical). Concepts of subclasses and superclasses, specializations and generalizations. Concepts of subclasses and superclasses, specializations and generalizations. Put concepts in diagram to form EER model Put concepts in diagram to form EER model

December 4, 2002Data Modeling – James Cohen Specialization Subgrouping into subclasses (top-down approach) Example: EMPLOYEE -> SECRETARY MANAGER, etc. Example: EMPLOYEE -> SECRETARY MANAGER, etc. Inheritance – Inherit attributes and relationships from superclass (Name, Birthdate, etc.) Inheritance – Inherit attributes and relationships from superclass (Name, Birthdate, etc.) Subclasses may have uniqe attributes Subclasses may have uniqe attributes SECRETARY has TypingSpeed attribute, MANAGER has BusinessUnitManaged, etc. SECRETARY has TypingSpeed attribute, MANAGER has BusinessUnitManaged, etc.

December 4, 2002Data Modeling – James Cohen Specialization (cont.) EMPLOYEE SSN Name WORKS_IN DEPARTMENT SECRETARYENGINEER SALARY_EMP.HOURLY_EMP. JobTypePayMethod U U U U SOFTWARE_ENGINEER U

December 4, 2002Data Modeling – James Cohen Model Shapes When you have more than one subclass based on the same defining attribute (JobType), use When you have more than one subclass based on the same defining attribute (JobType), use To show class/subclass relationships, use To show class/subclass relationships, use Used for relationships between entity types Used for relationships between entity types To show relationship between two different entity types, use To show relationship between two different entity types, use U

December 4, 2002Data Modeling – James Cohen Generalization Reverse processes of defining subclasses (bottom-up approach) Bring together common attributes in entities Bring together common attributes in entities Example: CAR (with attributes color, price, max speed) and TRUCK (with attributes color, price, tonnage) can be generalized into VEHICLE (with attributes color and price). Example: CAR (with attributes color, price, max speed) and TRUCK (with attributes color, price, tonnage) can be generalized into VEHICLE (with attributes color and price).

December 4, 2002Data Modeling – James Cohen Hierarchies and Lattices Hierarchy – subclass participates in one class/subclass relationship Hierarchy – subclass participates in one class/subclass relationship EMPLOYEE ENGINEERSECRETARY SOFTWARE ENGINEER SOFTWARE ENGINEER has all the attributes of an ENGINEER and EMPLOYEE U U U

December 4, 2002Data Modeling – James Cohen Hierarchies and Lattices Lattice – subclass participates in more than one class/subclass relationship Lattice – subclass participates in more than one class/subclass relationship EMPLOYEE ENGINEERSECRETARY ENGINEERING MANAGER MANAGER ENGINEERING MANAGER (shared subclass) is a MANGER and an ENGINEER U U U U U

December 4, 2002Data Modeling – James Cohen Categories Models a class/subclass with more than one superclass of distinct entity types. Attribute inheritance is selective. Models a class/subclass with more than one superclass of distinct entity types. Attribute inheritance is selective. PERSON BANK COMPANY U OWNER The category, OWNER, is a subclass of the union of PERSON, BANK, and COMPANY. OWNER is either a PERSON or a BANK or a COMPANY U

December 4, 2002Data Modeling – James Cohen Constraints Disjoint – an entity can be a member of at most one subclass of a specialization Disjoint – an entity can be a member of at most one subclass of a specialization Overlap – an entity may belong to more than one subclass of a specialization Overlap – an entity may belong to more than one subclass of a specialization Total specialization – each entity of a superclass belongs to some subclass of a specialization Total specialization – each entity of a superclass belongs to some subclass of a specialization Partial specialization – each entity of a superclass does not have to belong to some subclass of a specialization Partial specialization – each entity of a superclass does not have to belong to some subclass of a specialization d o

December 4, 2002Data Modeling – James Cohen Putting It All Together ExampleExample (Figure 4.7 in textbook) Example