Practice of ER modeling

Slides:



Advertisements
Similar presentations
COP4540 Database Management System Midterm Review
Advertisements

ER to Relational Mapping. Logical DB Design: ER to Relational Entity sets to tables. CREATE TABLE Employees (ssn CHAR (11), name CHAR (20), lot INTEGER,
Logical DB Design: ER to Relational Entity sets to tables. Employees ssn name lot CREATE TABLE Employees (ssn CHAR (11), name CHAR (20), lot INTEGER, PRIMARY.
Database Design The process of finding user requirement
Entity-Relationship Modeling (ER-M)
Developing ER-Diagram
Enhanced/Extended Relationship-Diagram
The Entity-Relationship Model
Entity-Relationship Models
1 The Entity-Relationship Model Chapter 2. 2 Exercise  What can you say about policy of the bank from the ER diagram?  What can you say about the policy.
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
1 The Entity-Relationship Model Chapter 2. 2 Overview of Database Design  Conceptual design: (ER Model is used at this stage.) –What are the entities.
COP5725 – Principles of Database Management Systems
Entity Relationship Diagrams
Information Resources Management January 30, 2001.
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
CS424 PK, FK, FD Normalization Primary and Foreign Keys Primary and foreign keys are the most basic components on which relational theory is based. Primary.
Practice of ER modeling
Switch off your Mobiles Phones or Change Profile to Silent Mode.
Practice of ER modeling - Answer Yong Choi School of Business CSUB.
Database Management System Quiz 1. A company needs to store information about: the employees identified by EmpNo, Name, Salary and Phone; departments.
The Hong Kong University of Science and Technology COMP3311 Spring 2013 Tutorial 1 ER Diagrams.
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
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. Weak entity meets.
COMP3030 Database Management System Final Review
Practice of ER modeling Yong Choi School of Business CSUB.
COP-5725 Practice Exercises
ER & Relational: Digging Deeper R &G - Chapters 2 & 3.
Introduction to Database Systems
Mapping E/R to RM, R. Ramakrishnan and J. Gehrke with Dr. Eick’s additions 1 Mapping E/R Diagrams to Relational Database Schemas Second Half of Chapter.
Tutorial on E-R Diagrams 1.Learn basic terminology and symbols –See next four slides; refer to as needed in steps 2-4 below 2.Learn the basics of E-R diagramming.
Extra ER. Q1: Draw an ER diagram A construction company wishes to establish a database system to record information about employees. The employee data.
Lecture # 14 Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
Entity-Relationship Data Model
Entity Relationship (E-R) Model
COP Introduction to Database Structures
Databases (CS507) CHAPTER 7.
Let try to identify the conectivity of these entity relationship
Chapter 3 Data Modeling Using the Entity-Relationship Model
University of Milano Bicocca, Italy Carlo Batini
The Entity-Relationship Model
The Entity-Relationship Model
ER model Ashima Wadhwa.
Tables and Their Characteristics
Database EER.
Lecture3: Data Modeling Using the Entity-Relationship Model.
بسم الله الرحمن الرحيم.
The Entity-Relationship Model
From ER to Relational Model
Practice of ER modeling
Question 01 A company database needs to store information about employees (identified by NIC, with salary and phone as attributes), departments (identified.
Extra ER.
Data Modeling with Entity Relationship Diagrams (Cont.)
Extra ER.
Data Modeling for Database Design 2
Chapter 2 Modeling Data in the Organization
Database Systems Instructor Name: Lecture-9.
CS4222 Principles of Database System
Database Systems Instructor Name: Lecture-10.
Faloutsos - Pavlo C. Faloutsos - A. Pavlo Lecture#2: E-R diagrams
Relationships—Topics
Mapping an ERD to a Relational Database
Question Which of the following plays an important role in representing information about the real world in a database? Explain briefly 1)DDL.
Entity Relation Model Tingting Zhang.
Database Management system
Database Management system
Entity-Relationship Data Model
CS4222 Principles of Database System
Extra ER.
Extra ER LAB #2.
Presentation transcript:

Practice of ER modeling Yong Choi School of Business CSUB

Identify Cardinality A purchase order can be placed for many products. A product may appear on many purchase orders. Purchase Order (many, optional) -------------- Product (many, optional) A customer may submit many orders. An order is placed for exactly one customer. Customer (one, mandatory) -------------- Order (many, optional)

Eliminate unnecessary details and refine Business Rule 1 According to the policy of the California Hospital, a patient can have patient records. That is, each patient may have at least one or many records. However, each patient record should belong to one patient. Patient (one) ------ Patient Record (many, optional)

Eliminate unnecessary details and refine Business Rule 2 The California State University has changed one of the policies about course schedule based on feedback from professors and students. One of the changed policies is that a course may have one or more scheduled sections. Also, each section can have one course. Creating a correct number of sections for each semester is very important. Course (one, optimal) ------ Section (many, optional)

Universally Applicable…. The piano technicians have a hierarchy of reporting relationships: some of them have supervisory responsibilities in addition to their inspection role and have multiple other technicians report to them.

Universally Applicable…. Each dependent must be identified uniquely by the last name and employee’s ID. Since each dependent must depend on an employee’s health insurance, we do not want to keep and maintain health insurance information about a child once the parent leaves the company. EMP DEP

Multiple Entities and Attributes Recently, our company installed a new relation database system and the company database needs to store information about employees, departments and children of employees. Each employee can be identified by ssn with salary and office phone number. Likewise, each departments also can identified by dno with dname and budget. Especially, children of employees should be identified with last name and age.

Multiple Entities and Attributes (con’t) Employees work in departments; each department is managed by an employee; 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. We are not interested in information about a child once the parent leaves the company.

Multiple entities and attributes