DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL. 1 Powered by POeT Solvers Limited

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

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

A l Ain University Of Science and Technology

The Entity-Relationship Model. The Entity-Relationship model. The ER model. The Entity-Relationship model. E-R Model Constructs. E-R Model Constructs

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

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

A l Ain University Of Science and Technology

DATABASE DESIGN PROCESS

Data Modeling Using the Entity- Relationship Model Design & Analysis of Database Systems

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

course 3 Levels of Database Design CSCI 403 Database Management Mines Courses ERD Attributes Entities title 9/26/2018

Objectives of logical design... Transforming the ERD diagram into relations. Relational database components. Mapping a composite attribute

Advance Database Management System

Definition. 02. Data Modeling. Example ABC Company Database. Data Modeling Importance

Database Systems ER Model. A.R. Hurson 323 CS Building

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling

Sahaj Computer Solutions. Data Modeling using the Entity Relationship Model

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

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling

Entity-Relationship Models

MIT Database Management Systems Lesson 03: Entity Relationship Diagrams

Conceptual Modeling in ER and UML

ER to Relational Mapping

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams

The Entity Relationship Model

Agenda: Understanding Relationship Types Degree and Cardinality with Examples

Chapter Outline. Note 1. Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts

Database Management System 6 ER Modeling...

ER-to-Relational Mapping

Data Modeling Using the Entity-Relationship (ER) Model

Chapter 4. In this chapter, you will learn:

Objectives Definition iti of terms Importance of data modeling Write good names and definitions for entities, relationships, and attributes Distinguis

CS 405G: Introduction to Database Systems

Represent entities and relations with diagrams

Conceptual Data Modeling

Chapter # 4 Entity Relationship (ER) Modeling

Elements of the E-R Model

System Analysis And Design Methods ENTITY RELATIONSHIP DIAGRAM (ERD) Prof. Ali Khaleghi Eng. Hadi Haedar

Intro to DB CHAPTER 6

David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation

Database Management

Chapter 2 Conceptual Modeling. Objectives

High Level Database Models

DATABASDESIGN FÖR INGENJÖRER F

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

Conceptual Data Models for Database Design

Overview of Database Design Process. Data Modeling Using the Entity- Relationship (ER) Model. Two main activities:

Topic 5: Mapping of EER Diagrams to Relations

Conceptual Data Modeling Using E-R Models. PM Jat

Chapter 12. Entity-Relationship Modeling

CMP-3440 Database Systems

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

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

DATABASE DESIGN I - 1DL300

CSE 880:Database Systems. ER Model and Relation Schemas

DATABASE DESIGN I - 1DL300

Overview of db design Requirement analysis Data to be stored Applications to be built Operations (most frequent) subject to performance requirement

Data Modeling Using the Entity-Relationship Model

Lecture3: Data Modeling Using the Entity-Relationship Model.

Copyright 2016 Ramez Elmasr and Shamkant B. Navathei

Conceptual Database Design. COSC 304 Introduction to Database Systems. Entity-Relationship Modeling. Entity-Relationship Modeling

Relational Database Systems Part 01. Karine Reis Ferreira

EECS 647: Introduction to Database Systems

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

Major components of ER diagram Practices

Full file at Chapter 2: Foundation Concepts

A database can be modeled as: + a collection of entities, + a set of relationships among entities.

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

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

KDI EER: The Extended ER Model

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

LECTURE 3: ENTITY-RELATIONSHIP MODELING

DATABASE SYSTEMS. Chapter 5 Entity Relationship (ER) Modelling DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT

Entity Relationship Diagram (ERD): Basics

Fundamentals, Design, and Implementation, 9/e Copyright 2004 Database Processing: Fundamentals, Design, and Implementation, 9/e by David M.

More on the Chen Notation

Information Technology Audit & Cyber Security

Relational Model (cont d) & Entity Relational Model. Lecture 2

Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques. Fundamentals, Design, and Implementation, 9/e

Entity Relationship Data Model. Slides by: Shree Jaswal

Related download: Instructor Manual for Modern Database Management 12th Edition by Hoffer Venkataraman Topi (Case studies included)

Entity-Relationship Model

Database Management System (15ECSC208) UNIT I: Chapter 1: Introduction to DBMS and ER-Model

COSC 304 Introduction to Database Systems. Entity-Relationship Modeling

Chapter 17. Methodology Logical Database Design for the Relational Model

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

Unit 2 - Data Modeling. Pratian Technologies (India) Pvt. Ltd.

ER Model. Objectives (2/2) Electricite Du Laos (EDL) Dr. Kanda Runapongsa Saikaew, Computer Engineering, KKU 1

COMP102: Introduction to Databases, 9.1

Data Analysis 1. Chapter 2.1 V3.1. Napier University Dr Gordon Russell

Full file at

Entity Relationship Modelling

Translation to Relational Schema

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530

Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques. Fundamentals, Design, and Implementation, 9/e

High-Level Database Models (ii)

Entity Relationship Modeling. From Rob and Coronel (2004), Database Systems: Design, Implementation, and Management

MIT Database Management Systems Lesson 03: ER-to-Relational Mapping

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams

Transcription:

DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL 1 www.pmtutor.org Powered by POeT Solvers Limited

2 www.pmtutor.org Powered by POeT Solvers Limited

Entity-Relationship (ER) Model The ER model is a high-level conceptual data model. It has not been implemented in any commercial DBMS (?), but is a powerful short hand often used in database design for a first rendition of the mini world. The ER model was introduced by Peter Chen in 1976, and is now the most widely used conceptual data model. Much work has been done on the ER model, and various extensions and enhancements have been proposed. 3 www.pmtutor.org Powered by POeT Solvers Limited

Definitions An entity is an object in the mini world. An attribute of an entity can have a value from a value set (domain) Each entity belongs to some one entity types.t. Entities in one entity type have the same attributes (so each entity type is a set of similar entities). A key attribute of an entity type is one whose value uniquely identifies an entity of that type. 4 www.pmtutor.org Powered by POeT Solvers Limited

A combination of attributes may form a composite key. If there is no applicable value for an attribute that attribute is set to a null value. 5 www.pmtutor.org Powered by POeT Solvers Limited

Entity Type/ Entity Set 6 www.pmtutor.org Powered by POeT Solvers Limited

Attributes Attributes can be composite / simple (atomic) Single-valued / multivalued stored / derived key / monkey. 7 www.pmtutor.org Powered by POeT Solvers Limited

Attribute Examples 8 www.pmtutor.org Powered by POeT Solvers Limited

9 www.pmtutor.org Powered by POeT Solvers Limited

Employee 10 www.pmtutor.org Powered by POeT Solvers Limited

ER Diagram for COMPANY Database 11 www.pmtutor.org Powered by POeT Solvers Limited

Relationship Type A relationship type R among n entity types E1 Enis a set of relationship instances ri, where each riassociates n entities (e1 en), s.t. each ej j. Informally, a relationship instance is an association of entities, with exactly one entity from each participating entity type. The degree of a relationship type is the number of participating entity types. In the ER model relationships are explicitly represented. 12 www.pmtutor.org Powered by POeT Solvers Limited

Entity Roles Each entity type in a relationship type plays a particular role that is described by a role name. Role names are especially important in recursive relationship types where the same entity participates in more than one role: 13 www.pmtutor.org Powered by POeT Solvers Limited

Weak Entity Type A weak entity type is one without any key attributes of its own. Entities belonging to a weak entity type are identified by being related to another entity type (called identifying owner) through a relationship type (called identifying relationship), in combination with values of a set of its own attributes (called partial key). A weak entity type has total participation constraint w.r.t. its identifying relationship. 14 www.pmtutor.org Powered by POeT Solvers Limited

Relationship Attributes Relationship types can have attributes as well. In case of 1:1 or 1: N relationships, attributes can be migrated to one of the participating entity types. 15 www.pmtutor.org Powered by POeT Solvers Limited

Relationship 16 www.pmtutor.org Powered by POeT Solvers Limited

17 www.pmtutor.org Powered by POeT Solvers Limited

18 www.pmtutor.org Powered by POeT Solvers Limited

Structural Constraints Structural constraints of a relationship type: Cardinality ratio: Limits the number of relationship instances an entity can participate in, e.g. 1:1, 1: N, M: N Participation constraint: If each entity of an entity type is required to participate in some instance of a relationship type, then that participation is total; otherwise, it is partial. 19 www.pmtutor.org Powered by POeT Solvers Limited

Structural Constraint Min, Max A more complete specification of the structural constraint on a relationship type can be given by the integer pair (min, max), which means an entity must participate in at least min and at most max relationship instances. 20 www.pmtutor.org Powered by POeT Solvers Limited

21 www.pmtutor.org Powered by POeT Solvers Limited

A ternary relationship generally represents more information than 3 binary relationships 22 www.pmtutor.org Powered by POeT Solvers Limited

23 www.pmtutor.org Powered by POeT Solvers Limited

24 www.pmtutor.org Powered by POeT Solvers Limited