CS 338 The Enhanced Entity-Relationship (EER) Model

Similar documents
Chapter (4) Enhanced Entity-Relationship and Object Modeling

Chapter 8 The Enhanced Entity- Relationship (EER) Model

Chapter 8: Enhanced ER Model

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

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

Enhanced Entity-Relationship (EER) Modeling

Enhanced Entity- Relationship Models (EER)

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

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

COIS Databases

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

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

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

Entity Relationship Data Model. Slides by: Shree Jaswal

CS 4604: Introduction to Database Management Systems. B. Aditya Prakash Lecture #5: Entity/Relational Models---Part 1

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

Topic 5: Mapping of EER Diagrams to Relations

1/24/2012. Chapter 7 Outline. Chapter 7 Outline (cont d.) CS 440: Database Management Systems

Conceptual Data Models for Database Design

Lecture 10. Spring 2018 Borough of Manhattan Community College

ER-to-Relational Mapping

MTAT Introduction to Databases


COMP102: Introduction to Databases, 13

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

DATABASE DESIGN I - 1DL300

Chapter 2 ENTITY RELATIONSHIP MODEL

Entity-Relationship Model. From Chapter 5, Kroenke book

CMP-3440 Database Systems

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.

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

DATABASE DESIGN I - 1DL300

ER to Relational Mapping

The Entity-Relationship Model. Steps in Database Design

Database Design with Entity Relationship Model

Database Management

DATABASDESIGN FÖR INGENJÖRER F

Conceptual Data Modeling and the Entity- Relationship Model. Department of Computer Science Northern Illinois University September 2014

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

COMP 244. ER-Diagram Notations. Entity-Relationship Diagrams DATABASE CONCEPTS & APPLICATIONS. Database Concepts & Applications 1.

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

Module 2 : Entity-Relationship Model 15

ER Model Overview. The Entity-Relationship Model. Database Design Process. ER Model Basics

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

2004 John Mylopoulos. The Entity-Relationship Model John Mylopoulos. The Entity-Relationship Model John Mylopoulos

COMP 244 DATABASE CONCEPTS & APPLICATIONS

DATABASTEKNIK - 1DL116

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

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

Chapter 11 Object and Object- Relational Databases

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

Entity-Relationship Model. Dr. Samaresh Mishra, School of Computer Engineering, KIIT University, Bhubaneswar

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38

Chapter 17. Methodology Logical Database Design for the Relational Model

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

Task: Design an ER diagram for that problem. Specify key attributes of each entity type.

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

Copyright 2016 Ramez Elmasr and Shamkant B. Navathei

CSE 530A. ER Model. Washington University Fall 2013

Data Modeling Using the Entity-Relationship (ER) Model

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

XV. The Entity-Relationship Model

MIS Database Systems Entity-Relationship Model.

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

Conceptual Data Modeling

Database Design Using E/R Model

Chapter 7: Entity-Relationship Model

CS 146 Database Systems

The Enhanced Entity Relationship (EER) Model

Chapter 2: Entity-Relationship Model

Entity-Relationship Model

Conceptual Design with ER Model

COSC 304 Introduction to Database Systems Enhanced Entity-Relationship (EER) Modeling

Modeling Databases Using UML

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

Non-overlappingoverlapping. Final outcome of the worked example On pages R&C pages R&C page 157 Fig 3.52

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

Database Design. Database Design I: The Entity-Relationship Model. Entity Type (con t) Representation in Relational Model.

Chapter 7: Entity-Relationship Model

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

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

Entity Relationship(ER) Modelling

Conceptual Database Design

Conceptual Modeling in ER and UML

Chapter 7: Entity-Relationship Model

Chapter 7: Entity-Relationship Model

CS 405G: Introduction to Database Systems

Digital Measures Users Guide

How to Request a Client using the UCC Self Serve Website. The following provides a detailed description of how to request a client...

Database Applications (15-415)

Conceptual and Logical Design

Object-Oriented Data Modeling. After studying this chapter, you should be able to:

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

The Entity-Relationship (ER) Model 2

COMP Instructor: Dimitris Papadias WWW page:

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

Chapter 3 The Enhanced E-R Model

Phases of Database Design

Transcription:

CS 338 The Enhanced Entity-Relationship (EER) Model Bojana Bislimovska Spring 2017

Major research Outline EER model overview Subclasses, superclasses and inheritance Specialization and generalization Modeling of UNION types using categories EER model example EER design choices

Major research EER Model Extension of the ER model Design more accurate database schemas Address more complex application requirements Concepts: inheritance, subclasses, superclasses, specialization, generalization

Subclasses, Superclasses and Inheritance Major research Subclass (subtype) of an entity type e.g. Different EMPLOYEE types (Company DB) Can have its own attributes and relationship types Superclass (supertype) over the subclasses e.g. EMPLOYEE is a supertype over its subclassess An entity type can be a subclass for more than one superclass Superclass/subclass relationship Type inheritance Subclass inherits all attributes and relationships from the superclass Multiple inheritance Subclass inherits from more than one superclass

Specialization Process of defining a set of subclasses of an entity type

Major research Generalizes differences of several entity types into a single superclass Inverse of specialization Generalization Common attributes belong to the superclass

Constraints on Specialization and Generalization Major research Membership definition constraint Predicate-defined - condition on some attribute value of a superclass Attribute-defined - membership condition on the same attribute User-defined specified individually for each entity Disjointness constraint subclasses must be disjoint sets Overlapping - an entity can belong to more than one subclass Completeness constraint Total specialization every entity of the superclass must be a member of at least one subclass Superclass derived by generalization is always total Partial specialization - an entity does not have to belong to any of the subclasses Disjointness and completeness are independent

Example: UNIVERSITY DB Major research The DB keeps track of three types of persons: employees, alumni, and students. A person can belong to one, two or all three types. Each person has a name, SSN, sex, address, and birth date. Every employee has a salary, and there are three types of employees: faculty, staff, and student assistants. Each employee belongs to exactly one of these types. For each alumnus, a record of university degree(s) she earned is kept, including degree name, year and major department. Each student has a major department. Each faculty has a rank, whereas each staff member has a staff position. Student assistants can either be research assistants or teaching assistants and the percent of time they work is recorded in the DB. Research assistants have their research project, whereas teaching assistants have the current course they work on. Students can be either graduate or undergraduate, with specific attributes degree program (M.S., Ph.D.,...) for graduate students and class for undergraduates.

Specialization and Generalization Hierarchies and Lattices Major research Specialization hierarchy - a subclass participates in exactly one class/subclass hierarchy (has only one parent) Specialization lattice - a subclass can participate in more than one class/subclass relationship

Refining Conceptual Schemas Major research Top-down conceptual refinement Applying specialization: start from an entity type and then define subclasses Bottom-up conceptual synthesis Applying generalization: start from multiple entity types and then define superclasses

Modeling of UNION Types Using Categories Major research UNION type (category): a subclass that is a subset of the UNION of entities from distinct entity types UNION type has two or more superclasses from distinct entity types Total type - union of all entities in its superclasses Partial type - subset of the union Some modeling methods do not have union types

UNION Types Example Major research

University DB Requirements For ea h perso, the DB ai tai s i for atio o the perso s a e, ssn, address, sex and birth date. Two types of persons can be identified: faculty and students. Each faculty has a rank, office, phone and salary. A faculty member can be related to several academic departments. A specific attribute of student is class. Each student is also related to one of her major and minor departments (if known), to the course sections she is currently attending and the completed courses. The DB keeps track of the grade a student received for a course section. Graduate student is a subclass of student based on the value of the predicate class. Each graduate student can have several degrees. Each graduate student has an advisor and a thesis committee, if one exists. Department has name, telephone and office number, and is related to the faculty member who is its chair and to the college to which it belongs. Each college has name, offi e u er, a d the dea s a e.

University DB Requirements Course has a course number, name and description. Several sections of each course are offered. Each section has a unique section number and year and quarter in which the section is offered. Each section has an instructor, if that instructor is in the DB. Some sections may be offered in the current quarter of the current year. All faculty members and some graduate students can teach several sections of a course. Grant keeps track of research grants and contracts awarded to the university. Each grant has a grant title, number, awarding agency and starting date. A grant has one principal investigator and it can have several researchers that it supports. For each researcher, the DB keeps track of the start and end date of the support, and percentage of time spent on the project.

EER Model Example: University DB Major research

Major research EER Design Choices Trade-off between model accuracy and model cluttering Subclasses with few specific attributes, and no specific relationships can be merged into the superclass Union types should be avoided => use specialization/generalization Choice of constraints is driven by the rules in the miniworld If requirements have no particular constraints, the default are overlapping and partial constraints