More on the Chen Notation

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

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

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

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

A l Ain University Of Science and Technology

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

A l Ain University Of Science and Technology

Chapter # 4 Entity Relationship (ER) Modeling

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

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

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

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

Entity-Relationship Model

LECTURE 3: ENTITY-RELATIONSHIP MODELING

Entity-Relationship Model &


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

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

Database Management System 6 ER Modeling...

Intro to DB CHAPTER 6

CSIT5300: Advanced Database Systems

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

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

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

Chapter 3 Database Modeling and Design II. Database Modeling

Full file at Chapter 2: Foundation Concepts

Lecture3: Data Modeling Using the Entity-Relationship Model.

Chapter 2 Conceptual Modeling. Objectives

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

Major components of ER diagram Practices

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

ER DIAGRAM ER) diagram, a graphical representation of entities and their relationships to each other, typically used in computing in regard to the

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

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

COMP Instructor: Dimitris Papadias WWW page:

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

Represent entities and relations with diagrams

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

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

Data Modeling Using the Entity-Relationship Model

Design Process Modeling Constraints E-R Diagram Design Issues Weak Entity Sets Extended E-R Features Design of the Bank Database Reduction to

Chapter 2: Entity-Relationship Model

Entity-Relationship Model. From Chapter 5, Kroenke book

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

Data Modeling Using the Entity-Relationship (ER) Model

Chapter 6: Entity-Relationship Model

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

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

2. DatabaseDesign. Master I Software Engineering. Dr. Imed Bouchrika Dept of Mathematics & Computer Science University of Souk-Ahras

Chapter 6: Entity-Relationship Model

6.1 RELATIONSHIP CONCEPTS

Chapter 7: Entity-Relationship Model

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

Chapter 7: Entity-Relationship Model

IS 263 Database Concepts

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

Full file at

Unified Modeling Language (UML)

DataBase Lab Lab # 7 ER Using ERWin

Chapter 7: Entity-Relationship Model

Example: specific person, company, event, plant

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

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

The Entity Relationship Model

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

Lecture 14 of 42. E-R Diagrams, UML Notes: PS3 Notes, E-R Design. Thursday, 15 Feb 2007

Entity Relationship Modelling

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

Agenda: Understanding Relationship Types Degree and Cardinality with Examples

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

CSCC43H: Introduction to Databases

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

The En'ty Rela'onship Model

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

Conceptual Data Modeling

Chapter 7: Entity-Relationship Model

Chapter 17. Methodology Logical Database Design for the Relational Model

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

Sahaj Computer Solutions. Data Modeling using the Entity Relationship Model

Chapter 6: Entity-Relationship Model

Conceptual Data Models for Database Design

Data Modeling and the Entity-Relationship Model

CSC 261/461 Database Systems Lecture 8. Spring 2018

CSC 261/461 Database Systems Lecture 8. Fall 2017

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.

Database Management Systems LECTURE NOTES 2

CS Reading Packet: "Entity-relationship modeling, part 1"

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary

COSC 304 Introduction to Database Systems. Entity-Relationship Modeling

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

Entity Relationship Data Model. Slides by: Shree Jaswal

ER-to-Relational Mapping

Data Modeling and the Entity-Relationship Model

Copyright 2016 Ramez Elmasr and Shamkant B. Navathei

Chapter 7: Entity-Relationship Model. Chapter 7: Entity-Relationship Model

ER modeling. Lecture 4

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

Conceptual Data Modeling Using E-R Models. PM Jat

Transcription:

More on the Chen Notation Reference: http://www.vertabelo.com/blog/technical-articles/chen-erd-notation Peter Chen, who developed entity-relationship modeling and published his work in 1976, was one of the pioneers of using the entity relationship concepts in software and information system modeling and design. The Chen ERD notation is still used and is considered to present a more detailed way of representing entities and relationships. Entities An entity is represented by a rectangle which contains the entity s name. In the Chen notation, we distinguish types of entities: 1. entity 2. weak entity an entity that cannot be uniquely identified by its attributes alone. The existence of a weak entity is dependent upon another entity called the owner entity. The weak entity s identifier is a combination of the identifier of the owner entity and the partial key of the weak entity.

3. associative entity an entity used in a many-to-many relationship (represents an extra table). All relationships for the associative entity should be many Attributes In the Chen notation, each attribute is represented by an oval containing atributte s name: Attributes are linked to the entity with straight lines:

There are some specific types of attributes: 1. key attribute an attribute that uniquely identifies a particular entity. The name of a key attribute is underscored: For example, since the Vehicle Identification Number (VIN) is a unique code used to identify individual vehicles (no two vehicles have the same VIN), VIN can be considered as the key attribute for the CAR entity: 2. partial key attribute (discriminator) an attribute that, when combined with the key attribute of the owner entity, provides a unique identification for the weak entity. We underline the discriminator with a dashed line:

3. multivalued attribute an attribute that can have many values (there are many distinct values entered for it in the same column of the table). Multivalued attribute is depicted by a dual oval: For example, each user can have several different hobbies, therefore the hobby can be considered as a multivalued attribute for the user entity: 4. derived attribute (or computed attribute) an attribute whose value is calculated (derived) from other attributes. The derived attribute may or may not be physically stored in the database. In the Chen notation, this attribute is represented by dashed oval: For example, having given the price excluding VAT and the VAT rate, we can calculate the price including VAT:

Some attributes can be further subdivided into smaller parts. For example, the attribute address can be subdivided into street name, street number, apartment number, city, state, zip code, and country. These are called composite attributes and are depicted as follow:

Relationships In the Chen notation, a relationship is represented by a diamond (rhombus) containing the relationship s name. Two kinds of relationship are distinguished: 1. strong relationship a relationship where entity is existence-independent of other entities, and PK of Child doesn t contain PK component of Parent Entity. A strong relationship is represented by a single rhombus: 2. weak (identifying) relationship a relationship where Child entity is existencedependent on parent, and PK of Child Entity contains PK component of Parent Entity. This relationship is represented by a double rhombus: Optionality of a relationship 1. Similarly to the Barker s notation, a mandatory relationship is represented by a solid line: 2. An optional relationship is represented by a dashed line like in Barker s notation:

Cardinality The degree of relationship (cardinality) is represented by characters 1, N or M usually placed at the ends of the relationships: one-to-one (1:1) The employee can manage only one department, and each department can be managed by one employee only: one-to-many (1:N) The customer may place many orders, but each order can be placed by one customer only:

many-to-one (N:1) Many employees may belong to one department, but one particular employee can belong to one department only: many-to-many (M:N) One student may belong to more than one student organizations, and one organization can admit more than one student: Participation constraints An entity set may participate in a relation either totally or partially. Total participation means that every entity in the set is involved in the relationship, e.g., each student must be guided by a professor (there are no students who are not guided by any professor). In the Chen notation, this kind of relation is depicted as a double line. Partial participation means that not all entities in the set are involved in the relationship, e.g., not every professor guides a student (there are professors who don t). In the Chen notation, a partial participation is represented by a single line.

The relationship shown above means that each student, without exception, must be guided by one chosen professor, and one but not every professor can guide many students. So there is no student that is not guided by a professor, and on the other hand there can be professors who don't guide any students. Now, let s see how our example with book and chapter (presented in the previous part) looks like in the Chen notation.