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

Similar documents
Chapter 8 The Enhanced Entity- Relationship (EER) Model

Chapter 8: Enhanced ER Model

Chapter 4. Enhanced Entity- Relationship Modeling. Enhanced-ER (EER) Model Concepts. Subclasses and Superclasses (1)

Enhanced Entity-Relationship (EER) Modeling

Chapter (4) Enhanced Entity-Relationship and Object Modeling

COIS Databases

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4-1

CS 338 The Enhanced Entity-Relationship (EER) Model

LELCTURE 4: ENHANCED ENTITY-RELATIONSHIP MODELING (EER)

Chapter 9: Relational DB Design byer/eer to Relational Mapping Relational Database Design Using ER-to- Relational Mapping Mapping EER Model

Relational DB Design by ER- and EER-to-Relational Mapping Design & Analysis of Database Systems

ER-to-Relational Mapping

Outline. Note 1. CSIE30600 Database Systems ER/EER to Relational Mapping 2

Enhanced Entity- Relationship Models (EER)

COMP102: Introduction to Databases, 13

Chapter 7 Relational Database Design by ER- and EERR-to-Relational Mapping

Database Management

SVY2001: Databases for GIS

Conceptual Data Models for Database Design

DATABASE DESIGN I - 1DL300

Chapter 17. Methodology Logical Database Design for the Relational Model

DATABASDESIGN FÖR INGENJÖRER F

Ch 9: Mapping EER to Relational. Follow a seven-step algorithm to convert the basic ER model constructs into relations steps 1-7

ER to Relational Mapping

DATABASE DESIGN I - 1DL300

Lecture 10. Spring 2018 Borough of Manhattan Community College


Chapter 9 Outline. Relational Database Design by ER and EERto-Relational. Mapping Fundamentals of Database Systems

Entity Relationship Data Model. Slides by: Shree Jaswal

Chapter 3 The Enhanced E-R Model

Database Systems. A Practical Approach to Design, Implementation, and Management. Database Systems. Thomas Connolly Carolyn Begg

Topic 5: Mapping of EER Diagrams to Relations

Chapter 2: Entity-Relationship Model

DATABASTEKNIK - 1DL116

Chapter 6: Entity-Relationship Model. The Next Step: Designing DB Schema. Identifying Entities and their Attributes. The E-R Model.

The Next Step: Designing DB Schema. Chapter 6: Entity-Relationship Model. The E-R Model. Identifying Entities and their Attributes.

1. Considering functional dependency, one in which removal from some attributes must affect dependency is called

Object Modeling. Entity-Relationship (ER) diagrams (1976) Object Modelling Technique (OMT) diagrams (1991)

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.

Chapter 6: Entity-Relationship Model. E-R Diagrams

Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra

Lecture 10 - Chapter 7 Entity Relationship Model

Database Design Phases. History. Entity-relationship model. ER model basics 9/25/11. Entity-relationship (ER) model. ER model basics II

CSE 530A. ER Model. Washington University Fall 2013

CMP-3440 Database Systems

Chapter 7: Entity-Relationship Model

Chapter 7: Entity-Relationship Model

King Fahd University of Petroleum and Minerals

6.1 RELATIONSHIP CONCEPTS

Chapter 7: Entity-Relationship Model

The Entity-Relationship Model. Steps in Database Design

Modeling Databases Using UML

Entity-Relationship Model

Chapter 6: Entity-Relationship Model

Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys

Database Technology. Topic 4: Enhanced Entity- Relationship (EER) Modeling

Roadmap of This Lecture. Weak Entity Sets Extended E-R Features Reduction to Relation Schemas Database Design UML*

Chapter 6. Advanced Data Modeling. Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel

Chapter 7: Entity-Relationship Model

Let s briefly review important EER inheritance concepts

4. Entity Relationship Model

Conceptual Database Design

This chapter discusses how to design a relational

Identifying entities. Another relationship. Continue exploring our first model for databases: Entity-relationship (ER) model. Identifying entities

Notes. These slides are based on a slide set provided by Prof. M. Tamer Öszu. CS 640 E-R Model Winter / 23. Notes

Chapter 2 ENTITY RELATIONSHIP MODEL

MIS Database Systems Entity-Relationship Model.

The Enhanced Entity Relationship (EER) Model

Data Analysis 2. Chapter 2.2 V3.0. Napier University Dr Gordon Russell

Data Modeling with the Entity Relationship Model. CS157A Chris Pollett Sept. 7, 2005.

Database Management Systems. Chapter 2 Part 2

Chapter 6: Entity-Relationship Model

Data Modeling Using the Entity-Relationship (ER) Model

Entity-Relationship Modelling. Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables

The En'ty Rela'onship Model

Database Applications (15-415)

E-R Model. Hi! Here in this lecture we are going to discuss about the E-R Model.

Database Design Process

Chapter 6: Entity-Relationship Model

CS3200 Database Design Spring 2018 Derbinsky. Entity-Relationship (ER) Diagrams. Lecture 7

Database Design. ER Model. Overview. Introduction to Database Design. UVic C SC 370. Database design can be divided in six major steps:

Use the below enhanced Entity Relationship diagram for relevant questions on this quiz

Conceptual Database Design (ER modeling) Chapter Three

Overview. Introduction to Database Design. ER Model. Database Design

Contents. Database. Information Policy. C03. Entity Relationship Model WKU-IP-C03 Database / Entity Relationship Model

Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model

THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)

Topic 2 Discussion Topic: Enhanced Entity Relationship Concepts. Conceptual Design: Enhanced Entity Relationship Model

2) Given the following entities, which of the choices below would be the most complicated?

Introduction to Database Design. Dr. Kanda Runapongsa Dept of Computer Engineering Khon Kaen University

Problem. Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications

OBJECTIVES. How to derive a set of relations from a conceptual data model. How to validate these relations using the technique of normalization.

Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts

A l Ain University Of Science and Technology

Data Modeling Using the Entity-Relationship Model

Intro to DB CHAPTER 6

The Entity-Relationship Model. Overview of Database Design. ER Model Basics. (Ramakrishnan&Gehrke, Chapter 2)

Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications. Problem. Faloutsos - Pavlo CMU SCS /615

Database Design Process. Requirements Collection & Analysis

Transcription:

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

2 CHAPTER 8 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

3 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

4 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

5 SPECIALIZED ENTITIES EMPLOYEE SECRETARY e 8 e 7 e 2 e 1 MANAGER TECHNICIAN e 5 e 3 e 6 e 4 e 10 e 9 ENGINEER 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.

6 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

EER DIAGRAM WITH SUBCLASSES 7

9 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

10 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

UNION TYPES 11

12 REWRITING UNION AS SPECIALIZATION BANK BANK PERSON COMPANY PERSON COMPANY obank operson ocompany d OWNER OWNER OWNS OWNS REGISTERED VEHICLE CAR TRUCK REGISTERED VEHICLE CAR d TRUCK rcar rtruck

13

14 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

17 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