Chapter 4 Entity Relationship Modeling In this chapter, you will learn:

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

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

Chapter 4. In this chapter, you will learn:

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

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

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

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

Chapter # 4 Entity Relationship (ER) Modeling

A l Ain University Of Science and Technology

A l Ain University Of Science and Technology

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

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

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

More on the Chen Notation

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 8 Data Modeling Advanced Concepts

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

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

LECTURE 3: ENTITY-RELATIONSHIP MODELING

Entity Relationship Diagram (ERD): Basics

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

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

Represent entities and relations with diagrams

Entity Relationship Modelling

Entity-Relationship Model. From Chapter 5, Kroenke book

Multiple Choice Questions

Conceptual Database Design (ER modeling) Chapter Three

The entity is an object of interest to the end user. entity correspond to the table not to a row- in the relational environment.

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

Chapter 2 Conceptual Modeling. Objectives

Lecture3: Data Modeling Using the Entity-Relationship Model.

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

Agenda: Understanding Relationship Types Degree and Cardinality with Examples

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

Chapter 3 Database Modeling and Design II. Database Modeling

MTAT Introduction to Databases

Modern Systems Analysis and Design Seventh Edition

4. Entity Relationship Model

System Analysis & design

Introduction to modeling. ER modelling

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

ER modeling. Lecture 4

CMP-3440 Database Systems

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

Chapter 2 ENTITY RELATIONSHIP MODEL

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

Data and Process Modeling

Advance Database Management System

Information Technology Audit & Cyber Security

Review -Chapter 4. Review -Chapter 5

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

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

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

IS 263 Database Concepts

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

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

Comparison of ER Modeling Notations

Chapter 1: The Database Environment

Full file at Chapter 2: Foundation Concepts

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

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

Chapter 17. Methodology Logical Database Design for the Relational Model

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

COMP102: Introduction to Databases, 9.1

Database Management System 6 ER Modeling...

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

Chapter 2: Entity-Relationship Model. Entity Sets. Entity Sets customer and loan. Attributes. Relationship Sets. A database can be modeled as:

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary

Fundamentals of Design, Implementation, and Management Tenth Edition


MIS Database Systems Entity-Relationship Model.

Entity-Relationship Model

Chapter 7: Entity-Relationship Model

Database Design with Entity Relationship Model

Entity Relationship (ER) Modeling

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

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

ER Modeling Data Modeling and the Entity-Relationship (ER) Diagram Pg 1

Handout 2. A very brief intro to relational databases (with more coming later). Conceptual Data Modeling Entity-Relationship Diagrams.

Attributes. Entity-Relationship Model (ERM) IV. Entity Relationship Modeling. Entities and Attributes: Chen and Crow s Foot

The En'ty Rela'onship Model

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

Data Modeling Using the Entity-Relationship (ER) Model

Data Modeling Using the Entity-Relationship Model

Conceptual Data Models for Database Design

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

Database Systems. Overview - important points. Lecture 5. Some introductory information ERD diagrams Normalization Other stuff 08/03/2015

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

Topic 5: Mapping of EER Diagrams to Relations

MIS2502: Data Analytics Relational Data Modeling - 1. JaeHwuen Jung

Full file at

COSC 304 Introduction to Database Systems. Entity-Relationship Modeling

DATABASE SYSTEMS CHAPTER 2 DATA MODELS 1 DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT

Unified Modeling Language (UML)

Essentials of Database Management (Hoffer et al.) Chapter 2 Modeling Data in the Organization

Discussion Focus. Figure 1

The Entity Relationship Model

Module 2 : Entity-Relationship Model 15

Systems Analysis and Design Methods Chapter 7: Data Modeling and Analysis

Copyright 2016 Ramez Elmasr and Shamkant B. Navathei

ER-to-Relational Mapping

Transcription:

Chapter Entity Relationship Modeling In this chapter, you will learn: What a conceptual model is and what its purpose is The difference between internal and external models How internal and external models serve the database design process How relationships between entities are defined and refined, and how such relationships are incorporated into the database design process How ERD components affect database design and implementation How to interpret the modeling symbols for the four most popular E-R modeling tools That real-world database design often requires you to reconcile conflicting goals Chapter Entity Relationship (E-R) Modeling FCS-IBA- Karachi 1

Basic Modeling Concepts Art and science Good judgment coupled with powerful design tools Models Description or analogy used to visualize something that cannot be directly observed Webster s Dictionary Data Model Relatively simple representation of complex realworld data structures Chapter Entity Relationship (E-R) Modeling 2

Data Models: Degrees of Data Abstraction Figure 3.1 Chapter Entity Relationship (E-R) Modeling 3

Degrees of Abstraction Conceptual Global view of data Basis for identification and description of main data items ERD used to represent conceptual data model Hardware and software independent Internal Representation of database as seen by DBMS Adapts conceptual model to specific DBMS Software dependent Chapter Entity Relationship (E-R) Modeling

Degrees of Abstraction (con t.) External Users views of data environment Provides subsets of internal view Makes application program development easier Facilitates designers tasks Ensures adequacy of conceptual model Ensures security constraints in design Physical Lowest level of abstraction Software and hardware dependent Requires definition of physical storage devices and access methods Chapter Entity Relationship (E-R) Modeling 5

The Entity Relationship (E-R) Model Represents conceptual view Main Components Entities Corresponds to entire table, not row Represented by rectangle Attributes Characteristics of entities Domain is set of possible values Primary keys underlined Relationships Chapter Entity Relationship (E-R) Modeling 6

Attributes (con t.) Simple Cannot be subdivided Age, sex, marital status Composite Can be subdivided into additional attributes Address into street, city, zip Single-valued Can have only a single value Person has one social security number Multi-valued Can have many values Person may have several college degrees Derived Can be derived with algorithm Age can be derived from date of birth Chapter Entity Relationship (E-R) Modeling 7

Relationships Association between entities Connected entities are called participants Operate in both directions Connectivity describes relationship classification 1:1, 1:M, M:N Cardinality Expresses number of entity occurrences associated with one occurrence of related entity Chapter Entity Relationship (E-R) Modeling 8

Connectivity and Cardinality in an ERD Figure 3.12 Chapter Entity Relationship (E-R) Modeling 9

Relationship Strength Existence dependence Entity s existence depends on existence of related entities Existence-independent entities can exist apart from related entities EMPLOYEE claims DEPENDENT Weak (non-identifying) One entity is existence-independent on another PK of related entity doesn t contain PK component of parent entity Strong (identifying) One entity is existence-dependent on another PK of related entity contains PK component of parent entity Chapter Entity Relationship (E-R) Modeling 10

Relationship Participation Optional Entity occurrence does not require a corresponding occurrence in related entity Shown by drawing a small circle on side of optional entity on ERD Mandatory Entity occurrence requires corresponding occurrence in related entity If no optionality symbol is shown on ERD, it is mandatory Chapter Entity Relationship (E-R) Modeling 11

Weak Entity Existence-dependent on another entity Has primary key that is partially or totally derived from parent entity Figure 3.19 Chapter Entity Relationship (E-R) Modeling 12

Relationship Degree Indicates number of associated entities Unary Single entity Recursive Exists between occurrences of same entity set Binary Two entities associated Ternary Three entities associated Chapter Entity Relationship (E-R) Modeling 13

Composite Entities Used to bridge between M:N relationships Bridge entities composed of primary keys of each entity needing connection Figure 3.30 Figure 3.31 Chapter Entity Relationship (E-R) Modeling 1

Entity Supertypes and Subtypes Generalization hierarchy Depicts relationships between higher-level supertype and lower-level subtype entities Supertype has shared attributes Subtypes have unique attributes Disjoint relationships Unique subtypes Non-overlapping Indicated with a G Overlapping subtypes use Gs Symbol Chapter Entity Relationship (E-R) Modeling 15

Generalization Hierarchy with Overlapping Subtypes Figure 3.35 Chapter Entity Relationship (E-R) Modeling 16

Comparison of E-R Modeling Symbols Alternate styles developed to enable easier use of CASE tools Chen Moved conceptual design into practical database design arena Crow s Foot Cannot detail all cardinalities Rein85 Similar to Crow s Foot Operates at higher level of abstraction IDEF1X Derivative of ICAM studies in the late 1970 s Uses fewer symbols Chapter Entity Relationship (E-R) Modeling 17

Comparison of E-R Modeling Symbols Figure 3.36 Chapter Entity Relationship (E-R) Modeling 18

Developing an E-R Diagram Iterative Process Step1: General narrative of organizational operations developed Step2: Basic E-R Model graphically depicted and reviewed Step3: Modifications made to incorporate newly discovered E-R components Repeat process until designers and users agree E-R Diagram complete Chapter Entity Relationship (E-R) Modeling 19

Supertype/Subtype Relationship in an ERD Figure 3.2 Chapter Entity Relationship (E-R) Modeling 20

First ERD Segment Established Figure 3.3 Chapter Entity Relationship (E-R) Modeling 21

Second and Third ERD Segments Established Figures 3. & 3.5 Chapter Entity Relationship (E-R) Modeling 22

Fourth and Fifth ERD Segments Established Figures 3.6 & 3.7 Chapter Entity Relationship (E-R) Modeling 23

Sixth and Seventh ERD Segments Established Figures 3.8 & 3.9 Chapter Entity Relationship (E-R) Modeling 2

Eighth ERD Segment Established Figures 3.50 Chapter Entity Relationship (E-R) Modeling 25

Ninth ERD Segment Established Figures 3.51 Chapter Entity Relationship (E-R) Modeling 26

Components of E-R Model Table 3.2 Chapter Entity Relationship (E-R) Modeling 27

Completed ERD Figure 3.52 Chapter Entity Relationship (E-R) Modeling 28

Challenge of Database Design: Conflicting Goals Database must be designed to conform to design standards High-speed processing may require design compromises Quest for timely information may be the focus of database design Other concerns Security Performance Shared access Integrity Chapter Entity Relationship (E-R) Modeling 29