Top Banner
DFC2033
39

Chapter 3 Entity Relationship Model

Jan 15, 2017

Download

Education

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 3 Entity Relationship Model

DFC2033

Page 2: Chapter 3 Entity Relationship Model

Course Learning Outcome �  CLO1: Apply the fundamentals concepts of database

management and relational data model to create a database based on an organization’s requirements. (C3, PLO1)

�  CLO2: Develop a database using a concurrency control and data recovery technique based on Database Management System (DBMS). (P3, C3, PLO2, PLO1)

Page 3: Chapter 3 Entity Relationship Model

Learning Outcome �  Apply Entity Relationship Diagrams (ERD) in database

development �  Define the three basic elements of ERD: entity types, relationship,

attributes and keys. �  Use Chen’s Model to draw ERD �  Use Crow’s Foot notations to draw ERD. �  Design E-R model based on a given scenario. �  Describe the basic conversion rules to convert ERD into relational

tables: a. One to one relationship b. One to many relationship c. Many to many relationship

�  Apply the conversion rules to convert a given ERD into relational tables

Page 4: Chapter 3 Entity Relationship Model
Page 5: Chapter 3 Entity Relationship Model
Page 6: Chapter 3 Entity Relationship Model
Page 7: Chapter 3 Entity Relationship Model
Page 8: Chapter 3 Entity Relationship Model

ERD: Crows Foot Model

Page 9: Chapter 3 Entity Relationship Model

Crows Foot Notation

Page 10: Chapter 3 Entity Relationship Model

Crows Foot Notation

Page 11: Chapter 3 Entity Relationship Model

ERD: Chen’s Model

Page 12: Chapter 3 Entity Relationship Model
Page 13: Chapter 3 Entity Relationship Model
Page 14: Chapter 3 Entity Relationship Model
Page 15: Chapter 3 Entity Relationship Model
Page 16: Chapter 3 Entity Relationship Model
Page 17: Chapter 3 Entity Relationship Model
Page 18: Chapter 3 Entity Relationship Model
Page 19: Chapter 3 Entity Relationship Model
Page 20: Chapter 3 Entity Relationship Model
Page 21: Chapter 3 Entity Relationship Model
Page 22: Chapter 3 Entity Relationship Model

1

Page 23: Chapter 3 Entity Relationship Model
Page 24: Chapter 3 Entity Relationship Model
Page 25: Chapter 3 Entity Relationship Model
Page 26: Chapter 3 Entity Relationship Model
Page 27: Chapter 3 Entity Relationship Model
Page 28: Chapter 3 Entity Relationship Model
Page 29: Chapter 3 Entity Relationship Model
Page 30: Chapter 3 Entity Relationship Model
Page 31: Chapter 3 Entity Relationship Model
Page 32: Chapter 3 Entity Relationship Model
Page 33: Chapter 3 Entity Relationship Model
Page 34: Chapter 3 Entity Relationship Model
Page 35: Chapter 3 Entity Relationship Model
Page 36: Chapter 3 Entity Relationship Model

Exercise A company database needs to store information about employees (identified by ssn, with salary and phone as attributes), departments (identified by dno, with dname and budget as attributes), and children of employees (with name and age as attributes).

Page 37: Chapter 3 Entity Relationship Model

Analyze the problem/case �  A company database needs to store information about

employees (identified by ssn, with salary and phone as attributes), departments (identified by dno, with dname and budget as attributes), and children of employees (with name and age as attributes).

�  Employees work in departments; a child must be identified uniquely by name when the parent (who is an employee; assume that only one parent works for the company) is known.

� Draw an ER diagram that captures this information.

Page 38: Chapter 3 Entity Relationship Model
Page 39: Chapter 3 Entity Relationship Model

Apply the conversion rules to convert a given ERD into relational tables

Departments

Child

Employees

name age

phone ssn

salary

Dependent

budget dno

dname

Works_In