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

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

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

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

Entity-Relationship Model. From Chapter 5, Kroenke book

Introduction to modeling. ER modelling

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

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

Data and Process Modeling

Unified Modeling Language (UML)

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

Copyright 2016 Ramez Elmasr and Shamkant B. Navathei

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

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

Chapter 17. Methodology Logical Database Design for the Relational Model

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

Entity Relationship Diagram (ERD): Basics

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

A l Ain University Of Science and Technology

A l Ain University Of Science and Technology

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

Conceptual Modeling in ER and UML

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

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

Entity Relationship modeling from an ORM perspective: Part 2

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

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

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

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

Database Design. IIO30100 Tietokantojen suunnittelu. Michal Zabovsky. Presentation overview

Database Management System 6 ER Modeling...

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

MFI Metamodel for Information Models

Comparison of ER Modeling Notations

Logical E/R Modeling: the Definition of Truth for Data

Data Modeling Using the Entity-Relationship (ER) Model

KDI EER: The Extended ER Model

Full file at Chapter 2: Foundation Concepts

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

More on the Chen Notation

Conceptual Data Modeling

Chapter 10. Object-Oriented Analysis and Modeling Using the UML. McGraw-Hill/Irwin

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

Chapter 12. Entity-Relationship Modeling

Review -Chapter 4. Review -Chapter 5

COSC 304 Introduction to Database Systems. Entity-Relationship Modeling

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

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

Intro to DB CHAPTER 6

Entity Relationship Modelling

Modern Systems Analysis and Design Seventh Edition

Data Modeling Online Training

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

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

Unified Modeling Language (UML) Class Diagram

Conceptual Database Design (ER modeling) Chapter Three

Chapter 7: Entity-Relationship Model

Introducing the UML Eng. Mohammed T. Abo Alroos

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

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

CMPT 354 Database Systems I

Major components of ER diagram Practices

UML Tutorial. Unified Modeling Language UML Tutorial

Represent entities and relations with diagrams

Use of UML in Tranmodel

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

A Data Modeling Process. Determining System Requirements. Planning the Project. Specifying Relationships. Specifying Entities

Chapter 4. In this chapter, you will learn:

Information Technology Audit & Cyber Security

Chapter 3 Database Modeling and Design II. Database Modeling

Chapter 6: Entity-Relationship Model

COMP102: Introduction to Databases, 9.1

4 Data Modeling and the Entity-Relationship Model (cont.)

Multiple Choice Questions

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

Solved MCQ on fundamental of DBMS. Set-1

Basic Structural Modeling. Copyright Joey Paquet,

MTAT Introduction to Databases

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

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

ER modeling. Lecture 4

The Entity Relationship Model

Requirement Analysis & Conceptual Database Design

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

Introduction to Software Engineering. 5. Modeling Objects and Classes

ER Modeling ER Diagram ID-Dependent and Weak Entities Pg 1

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

DATA MODELS FOR SEMISTRUCTURED DATA

Chapter 7: Entity-Relationship Model

Engineering Design w/embedded Systems

Chapter 7: Entity-Relationship Model

Object Oriented Modeling

S T R U C T U R A L M O D E L I N G ( M O D E L I N G A S Y S T E M ' S L O G I C A L S T R U C T U R E U S I N G C L A S S E S A N D C L A S S D I A

LOGICAL DATA MODELING

CMP-3440 Database Systems


Chapter # 4 Entity Relationship (ER) Modeling

Chapter 5: Structural Modeling

Chapter 8 The Enhanced Entity- Relationship (EER) Model

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

Introduction to Database Design

Transcription:

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

Three Schema Model ANSI/SPARC introduced the three schema model in 1975 It provides a framework describing the role and purpose of data modeling Chapter 2/2

Three Schema Model (cont.) External schema or user view Representation of how users view the database Conceptual schema A logical view of the database containing a description of all the data and relationships Independent of any particular means of storing the data One conceptual schema usually contains many different external schemas Internal schema A representation of a conceptual schema as physically stored on a particular product A conceptual schema can be represented by many different internal schemas Chapter 2/3

E-R Model Entity-Relationship model is a set of concepts and graphical symbols that can be used to create conceptual schemas Four versions Original E-R model by Peter Chen (1976) Extended E-R model: the most widely used model Information Engineering (IE) by James Martin (1990) IDEF1X national standard by the National Institute of Standards and Technology Unified Modeling Language (UML) supporting object-oriented methodology Chapter 2/4

The Extended E-R Model Chapter 2/5

Example: E-R Diagram Chapter 2/6

Entities Something that can be identified and the users want to track Entity class is a collection of entities described by the entity format in that class Entity instance is the representation of a particular entity There are usually many instances of an entity in an entity class Chapter 2/7

Example: Entity Chapter 2/8

Attributes Description of the entity s characteristics All instances of a given entity class have the same attributes Composite attribute: attribute consisting of the group of attributes Multi-value attributes: attribute with more than one possible value Chapter 2/9

Identifiers Identifiers are attributes that name, or identify, entity instances The identifier of an entity instance consists of one or more of the entity s attributes An identifier may be either unique or non-unique Unique identifier: the value identifies one and only one entity instance Non-unique identifier: the value identifies a set of instances Composite identifiers: Identifiers that consist of two or more attributes Chapter 2/10

Relationships Entities can be associated with one another in relationships Relationship classes: associations among entity classes Relationship instances: associations among entity instances Relationships can have attributes A relationship class can involve many entity classes Degree of the relationship is the number of entity classes in the relationship Chapter 2/11

Example: Degree of the relationship Relationships of degree 2 are very common and are often referred to by the term binary relationships Chapter 2/12

Binary Relationships 1:1 1:N N:M Chapter 2/13

Recursive Relationship Recursive relationships are relationships among entities of a single class Chapter 2/14

Cardinality Maximum cardinality indicates the maximum number of entities that can be involved in a relationship Minimum cardinality indicate that there may or may not be an entity in a relationship Chapter 2/15

Weak Entities Weak entities are those that must logically depend on another entity Weak entities cannot exist in the database unless another type of entity (strong entity) also exists in the database ID-dependent entity: the identifier of one entity includes the identifier of another entity Chapter 2/16

Example: Weak Entities Chapter 2/17

Example: Weak Entities Chapter 2/18

Subtype Entities Subtype entity is an entity that represents a special case of another entity, called supertype Sometimes called an IS-A relationship Entities with an IS-A relationship should have the same identifier Chapter 2/19

Example: Subtype Entities Chapter 2/20

Example: Subtype Entities Chapter 2/21

Example: Subtype Entities Chapter 2/22

IDEF1X Standard IDEF1X (Integrated Definition 1, Extended) was announced as a national standard in 1993 It defines entities, relationships, and attributes in more specific meanings It changed some of the E-R graphical symbols It includes definition of domains, a component not present in the extended E-R model Four Relationship Types Non-Identifying Connection Relationships Identifying Connection Relationships Non-Specific Relationships Categorization Relationships Products supporting IDEF1X: ERWin, Visio, Design/2000 Chapter 2/23

Example: IDEF1X Chapter 2/24

Example: IDEF1X Chapter 2/25

Example: IDEF1X Chapter 2/26

Non-Identifying Connection Relationships Represent relationship with a dashed line from a parent to a child entity Default cardinality is 1:N with a mandatory parent and an optional child 1 indicates exactly one child is required Z indicates zero or one children Chapter 2/27

Non-Identifying Connection Relationships Chapter 2/28

Identifying Connection Relationships Same as ID-dependent relationships in the extended E-R model Parent s identifier is always part of the child s identifier Relationship are indicated with solid lines, child entities are shown with rounded corners (ID-dependent entities only) Chapter 2/29

Identifying Connection Relationships Chapter 2/30

Non-Specific Relationships Simply a many-to-many relationship Relationships are shown with a filled-in circle on each end of the solid relationship line Cannot set minimum cardinalities of a non-specific relationship Chapter 2/31

Non-Specific Relationships Chapter 2/32

Categorization Relationships A relationship between a generic entity and another entity called a category entity Called specialization of generalization/subtype relationships (IS-A relationships) in the extended E-R model Within category clusters, category entities are mutually exclusive Two types of category clusters: Complete: every possible type of category for the cluster is shown (denoted by two horizontal lines with a gap in-between) Incomplete: at least one category is missing (denoted by placing the category cluster circle on top of a single line, no gap between horizontal lines) Chapter 2/33

Example: Categorization Relationships Chapter 2/34

Example: IDEF1X Model With Relationship Names Chapter 2/35

Example: IDEF1X Model With Relationship Names Chapter 2/36

Domains A domain is a named set of values that an attribute can have It can be a specific list of values or a pre-defined data characteristic, e.g. character string of length less than 75 Domains reduce ambiguity in data modeling and are practically useful Two types of domains Base domain: have a data type and possibly a value list or range definition Type domain: a subset of a base domain or a subset of another type domain Chapter 2/37

Example: Domain Hierarchy Chapter 2/38

UML-style E-R Diagrams The Unified Modeling Language (UML) is a set of structures and techniques for modeling and designing object-oriented programs (OOP) and applications The concept of UML entities, relationships, and attributes are very similar to those of the extended E-R model Several OOP constructs are added: <Persistent> indicates that the entity class exist in the database UML allows entity class attributes UML supports visibility of attributes and methods UML entities specify constraints and methods in the third segment of the entity classes Currently, the object-oriented notation is of limited practical value Chapter 2/39

Example: UML Chapter 2/40

Example: UML Chapter 2/41

Example: UML Chapter 2/42

UML: Weak Entities Chapter 2/43

UML: Subtypes Chapter 2/44

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