Database Management System 6 ER Modeling...

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

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

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

Chapter 17. Methodology Logical Database Design for the Relational Model

Chapter 12. Entity-Relationship Modeling

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

The Entity Relationship Model

COMP102: Introduction to Databases, 9.1

Chapter 2: Entity-Relationship Model

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

Chapter 4. In this chapter, you will learn:

Agenda: Understanding Relationship Types Degree and Cardinality with Examples

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

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

MIT Database Management Systems Lesson 03: Entity Relationship Diagrams

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

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

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

Conceptual Data Modeling

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

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

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

More on the Chen Notation

Database Management Systems LECTURE NOTES 2

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

Intro to DB CHAPTER 6

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

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

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

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

Entity Relationship Modelling

Chapter 6: Entity-Relationship Model

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

4. Entity Relationship Model

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

Chapter 6: Entity-Relationship Model

ER to Relational Mapping

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

ER-to-Relational Mapping

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

Example: specific person, company, event, plant

Major components of ER diagram Practices

Chapter 3 Database Modeling and Design II. Database Modeling

CSIT5300: Advanced Database Systems

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

Full file at Chapter 2: Foundation Concepts

Represent entities and relations with diagrams

LECTURE 3: ENTITY-RELATIONSHIP MODELING

Chapter # 4 Entity Relationship (ER) Modeling

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

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

Database Management System 10 Conversion of ER model to Relational Model

Chapter 6: Entity-Relationship Model

Introduction to Database Design

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

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

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

Topic 5: Mapping of EER Diagrams to Relations

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

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

Objectives Definition iti of terms List five properties of relations State two properties of candidate keys Define first, second, and third normal for

Database Management System 5 ER Modeling

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

CMSC 424 Database design Lecture 3: Entity-Relationship Model. Book: Chap. 1 and 6. Mihai Pop

Chapter 7: Entity-Relationship Model

Chapter 7: Entity-Relationship Model

Advance Database Management System

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

Chapter 2 Conceptual Modeling. Objectives

Database Management

Chapter 6: Entity-Relationship Model

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

ENTITY-RELATIONSHIP MODEL II. CS121: Relational Databases Fall 2017 Lecture 15

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

Lecture 2: Entity Relationship Data Model 2. 1

Lecture3: Data Modeling Using the Entity-Relationship Model.

A l Ain University Of Science and Technology

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

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

Chapter 6: Entity-Relationship Model. The Next Step: Designing DB Schema. Identifying Entities and their Attributes. The E-R Model.

Chapter 7: Entity-Relationship Model

Data Modeling Using the Entity-Relationship (ER) Model

Entity-Relationship Model

Translating an ER Diagram to a Relational Schema

The Next Step: Designing DB Schema. Chapter 6: Entity-Relationship Model. The E-R Model. Identifying Entities and their Attributes.

Entity-Relationship Model. From Chapter 5, Kroenke book

Multiple Choice Questions

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

CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam

6.1 RELATIONSHIP CONCEPTS

II. Review/Expansion of Definitions - Ask class for definitions

CSE 530A. ER Model. Washington University Fall 2013

Sahaj Computer Solutions. Data Modeling using the Entity Relationship Model

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

MTAT Introduction to Databases

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

Basant Group of Institution

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

Mahathma Gandhi University

Transcription:

Database Management System 6 School of Computer Engineering, KIIT University 6.1

A key allows us to identify a set of attributes that suffice to distinguish entities from each other A key is a property of the entity set, rather than of the individual entities A super key is a set of one or more attributes that allow us to identify uniquely an entity in an entity set The minimal super keys are called candidate keys Primary key is a candidate key that is chosen by the database designer as the principal means of identifying entities within an entity set. The primary key can be represented by underlying the attribute name. The primary key should be chosen such that its attributes are never or very rarely changed The remaining candidate keys except the primary key are called as alternate keys 6.2

... If none of the columns is a candidate for the primary key in a table, sometimes database designers use an extra column as a primary key instead of using a composite key. Such key is known as the surrogate key Foreign key is the set of attributes which is used for referring to another entity set having the primary key. In ER diagram, foreign key can not be represented 6.3

Let R be a relationship set involving entity sets E 1, E 2,... E n. Let PK(E i ) denotes the set of attributes that forms the primary key for entity set E i If the relationship set R has no descriptive attributes associated with it, then the set of attributes PK(E 1 ) U PK(E 2 ) U... U PK(E n ) describes an individual relationship in set R If the relationship set R has attributes a 1, a 2... a m associated with it, then the set of attributes PK(E 1 ) U PK(E 2 ) U... U PK(E n ) U {a 1,a 2,...a m } describes an individual relationship in set R 6.4

... M:N relationship The primary key of the relationship set consists of the union of the primary keys of the entity sets 1:M relationship The primary key of the relationship set is the primary key of the many side entity set 6.5

... 1:1 relationship The primary key of the relationship set is either the primary key of any entity set 6.6

A relationship type is a meaningful association among entity types. The degree of a relationship type is defined as the number of entity sets participating in that relationship type Binary relationship A relationship type is said to be binary when two entity sets are involved Ternary relationship Relationship types that involve three entity sets are defined as ternary relationships 6.7

... Quaternary relationship A relationship of degree four can be referred to as a quaternary relationship Recursive relationship The participation of an entity set in a relationship type can be indicated by its role name. When used in recursive relationship types, role names describe the functionality of the participation 6.8

The participation constraint for an entity set in a binary relationship type is based on whether an entity of that entity set needs to be related to an entity of the other entity set through this relationship type Total participation: If, in order to exist, every entity must participate in the relationship, then participation of the entity set in that relationship type is total or mandatory. The total participation is represented by double lines Partial participation: If an entity can exist without participating in the relationship, then participation of the entity type in that relationship type is partial or optional 6.9

An edge between an entity set and a binary relationship set can have an associated minimum and maximum cardinality; shown as l..h, where l is the minimum and h is the maximum cardinality A minimum value of 1 indicates total participation of the entity set in the relationship set A maximum value of 1 indicates that the entity participates in at most one relationship, while a maximum value * indicates no limit 1..* indicates total participation or double line 6.10

6.11

An entity set where the entities have independent existence (that is, each entity is unique) is referred to as a strong or base entity set. On the other hand, the entity set that does not have independent existence, that is, an entity set that does not have its own unique identifier is known as weak entity set For a weak entity set to be meaningful, it must be associated with another strong entity set called identifying or owner entity set The relationship associating the weak entity set with the identifying entity set is called the identifying relationship The identifying relationship is usually many-to-one from the weak entity set to the identifying entity set and the participation of the weak entity set in the relationship is total participation 6.12

... An attribute in a weak entity set, which in conjunction with a unique identifier of the parent entity set in the identifying relationship type uniquely identifies weak entities, is called the partial key of the weak entity set and is denoted by a dotted underline. The partial key of a weak entity set is sometimes referred to as a discriminator The primary key of a weak entity set is formed by the primary key of the identifying entity set, plus the weak entity set s discriminator 6.13