E-R to Relational - Basic

Slides:



Advertisements
Similar presentations
ER Modeling Case Studies
Advertisements

Convert ER to Relational Database Entity relation Entity relation Attributes attributes Attributes attributes Primary key primary key Primary key primary.
Week 5 Relational Database Design by ER- -to-Relational Mapping.
ER Modeling Case Studies
ER Modeling Case Studies
Conceptual Data Modeling: ER
1 Database Theoretic Basis Entity Relationship (E-R) Modeling Database Theoretic Basis Entity Relationship (E-R) Modeling.
CS370 Spring 2007 CS 370 Database Systems Lecture 6 Introduction to Database Design.
CIT 381 More ER Modeling - review one-to-many - one-to-one - recursive relationships.
Review Database Application Development Access Database Development ER-diagram Forms Reports Queries.
Copyright © 2007 Ramez Elmasr and Shamkant B. Navathei Week 3 Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model.
Mapping of N:M Relationships PERSON-ID TITLE PERSON-NAME DATE-OF-BIRTH PERSON-ID PROJECT-ID HOURS-SPENT PROJECT-ID END-DATE START-DATE E-R Diagram PERSON.
The (min,max) notation (1,1) (0,1) (1,N) (1,1). SUMMARY OF ER-DIAGRAM NOTATION FOR ER SCHEMAS Meaning ENTITY TYPE WEAK ENTITY TYPE RELATIONSHIP TYPE IDENTIFYING.
Chapter 7 Relational Database Design by ER- and EER-to-Relational Mapping Copyright © 2004 Pearson Education, Inc.
Ch 6: ER to Relational Mapping
ER Modeling Case Studies
Transforming ER & EER diagrams into Relations (Chapter 9)
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas.
Data Modeling Using the Entity-Relationship Model
the Entity-Relationship Model
Converting ER model Into Relational Table
Review: Application of Database Systems
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 7 Relational Database Design by ER- to-Relational Mapping.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 7 Relational Database Design by ER- Mapping.
Data Modeling Using the Entity-Relationship
Relational databases and third normal form As always click on speaker notes under view when executing to get more information!
1 E/R to relational mapping algorithm – overview Mapping algorithm step 1-7 Steen Jensen, autumn 2013.
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model.
CS370 Spring 2007 CS 370 Database Systems Lecture 4 Introduction to Database Design.
Initial Design of Entity Types for the COMPANY Database Schema Based on the requirements, we can identify four initial entity types in the COMPANY database:
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
Database Management COP4540, SCS, FIU Database Modeling Using the Entity-Relationship Model (Continued)
 Entity-relationship models (ERM) Entity-relationship models (ERM)  Simple E-R Diagram Simple E-R Diagram  Weak Entity Weak Entity  Strong Entity.
Normalization Exercise. First Normal Form Second Normal Form.
1 Translating ER Schema to Relational Model Instructor: Mohamed Eltabakh
COMP231 Tutorial 1 ER Model and ER to Relational Schema.
Slide Chapter 7 Relational Database Design by ER- to-Relational Mapping.
Logical Design database design. Dr. Mohamed Osman Hegaz2 Conceptual Database Designing –Provides concepts that are close to the way many users perceive.
Slide Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model.
Data Modeling Using the Entity-Relationship (ER) Data Model (Based on Chapter 3 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3)
Copyright © 2007 Ramez Elmasr and Shamkant B. Navathei Slide 3- 1.
Data Modelling Using Entity-Relationship (ER) Model
Software School of Hunan University Database Systems Design Part III : Mapping ER Diagram to Relational Schema.
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
Data Modeling Using the Entity- Relationship (ER) Model.
Chapter 3: Data Modeling Using the Entity-Relationship (ER) Data Model
Quiz Where to Store Attributes of Relationship Staff (1) Interviews (0..*) Client Attributes: date, time, comment Staff (StaffNo, …) PK: StaffNo.
Transforming ER models to relational schemas
Mapping ER Diagrams to Tables
Lecture (8) 1. Relational Database Design by ER- and EERR- to-Relational Mapping 2.
Conceptual Modelling The Entity-Relationship (ER) Model The ER diagram Data Modelling.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Lecture # 16 July 26,2012 Data Modeling using the Entity Relationship.
 1 Chapter 9 Chapter 9 Relational Database Design by ER- to-Relational Mapping.
Database Management Systems
ER model Ashima Wadhwa.
COP5725 Database Management ER DIAGRAM AND RELATIONAL DATA MODEL
ER Diagram Practical Example
Relational Database Design by ER- and EERR-to-Relational Mapping
Relational Database Design by ER-to-Relational Mapping
Payroll Management System
ER Modeling Case Studies
بسم الله الرحمن الرحيم.
Mapping ER Diagrams to Tables
Order Database – ER Diagram
Entity-Relationship Modeling "Extended"
ER Modeling Case Studies
ER Modeling Case Studies
Entity Relation Model Tingting Zhang.
Entity-Relationship Modeling "Extended"
Presentation transcript:

E-R to Relational - Basic Strong entity Table with all attributes of that entity Relationships Table with primary keys of participating entities Weak entity Table with primary key of strong entity Multi-valued Attribute X Table with X, primary key of strong entity Row per value of X Finally ..

E-R to Relational - Improved For N-1/1-1 relationships Move relationship attributes to the N-side entity’s table Dept id moves to employee. No need for a table for the relationship relating a weak entity Remove the “depends” table

Emp-Dept ER Diagram department car dependent employee Dept id name Manages department city state color Lic# car Supervises Start date Works for dependent supervisee supervisor employee reln name Supports Owns SSN Name address phones street city

Emp-Dept schema Employee(SSN, name, street, city, deptid, startdate, supervisor_ssn) Dept(deptid, name, city, Manager-SSN) Phone(SSN, phone#) Dependent(EMP-SSN, Name, relation) Car(state, license#, color) CarOwners(owner-SSN, car-state, license#)