Conversion from ER diagram to relational model 1 ER is a visual model The relational model is a matemathical model.

Slides:



Advertisements
Similar presentations
Banking Business Scenario
Advertisements

ER Model For a college DB
The transformation of an ER or EER model into a relational model
Review Indra Budi Fakultas Ilmu Komputer UI 2 Database Introduction Database vs File Processing Main purpose of database Database Actors.
Review for Final Test Indra Budi
© 2002 by Prentice Hall 1 SI 654 Database Application Design Winter 2003 Dragomir R. Radev.
System Analysis - Data Modeling
Fundamentals, Design, and Implementation, 9/e Chapter 5 Database Design.
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Modeling Data The Entity Relationship Model (ER) For Database Design.
Entity-Relationship Model and Diagrams (continued)
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 6-1 David M. Kroenke’s Chapter Six: Transforming Data Models into Database.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 6 Database Design Using Entity- Relationship Models.
Modeling & Designing the Database
Case study Lisa’s Bookstore IST210.
1 Nassau Community CollegeProf. Vincent Costa Acknowledgements: Introduction to Database Management, All Rights ReservedIntroduction to Database Management.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Mapping ERM to relational database
Introduction to Databases
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
Entity Relationship Model Chapter 6. Basic Elements of E-R Model Entity Object of the real world that stores data. Eg. Customer, State, Project, Supplier,
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
IS 325 Notes for Wednesday September 18, 2013.
Chapters 17 & 18 Physical Database Design Methodology.
Converting ER model Into Relational Table
Relational DB Components
Conversion from ER diagram to relational model
ER to Relational Translation COMSATS INSTITUTE OF INFORMATION TECHNOLOGY, VEHARI.
Q1: What is DBMS and explain its architecture. Q2: Explain Data Independence in detail. Q3: What is database user and explain the types of database user.
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
PLUG IT IN 3 Fundamentals of Relational Database Operations.
1 E/R to relational mapping algorithm – overview Mapping algorithm step 1-7 Steen Jensen, autumn 2013.
Chapters 15 &16 Conceptual and Logical Database Design Methodology.
DESIGN AND IMPLEMENTATION DATA MODELING TOOLS Indah Puspa Sari ( ) Advisor : Adi Wibowo, M.T. Andreas Handojo, M.MT.
CS 370 Database Systems Lecture 9 The Relational model.
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:
Entity – Relationship Model (E-R Model)
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
 An entity-relationship diagram (ERD) is a specialized graphic that illustrates the interrelationships between entities in a database.
Chapter 3 Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
1 CS 430 Database Theory Winter 2005 Lecture 15: How to Convert an ER Model to Relations.
Databases Illuminated Chapter 3 The Entity Relationship Model.
Order Database – ER Diagram Prepared by Megan Foster Fall Semester 2014.
Software School of Hunan University Database Systems Design Part III : Mapping ER Diagram to Relational Schema.
Data modeling using ER1 Entity relationship diagrams.
Chapter 15 & 16 Conceptual and Logical Database Design Methodology Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation.
Week 7-8 DBMS ER-Relational Mapping. ER-Relational Mapping.
1. Explain the DBMS with its Components and Describe the various functions of DBMS? 2. Define the term DBA. Explain the various Roles of Database Administrator?
Done By : Gillian Swaby. Objectives: 1. What is an Entity-Relationship Diagram? 2.What are the symbols used in ERD? Explain each. 3. What is a one- to-
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
ER- Relational Mapping (Based on Chapter 9 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3)
Transforming ER models to relational schemas
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
Order Database – ER Diagram Prepared by Bryan Borcher Spring 2014.
Mapping ER to Relational Model Each strong entity set becomes a table. Each weak entity set also becomes a table by adding primary key of owner entity.
Methodology - Logical Database Design. 2 Step 2 Build and Validate Local Logical Data Model To build a local logical data model from a local conceptual.
5 1 Normalization of Database Tables. 5 2 Database Tables and Normalization Normalization –Process for evaluating and correcting table structures to minimize.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Year 12 > 13 Applied GCE ICT Unit 7 Using Database Software.
Order Database – ER Diagram Prepared by Evan Hollister Spring 2016.
Methodology Logical Database Design for the Relational Model
Relational Database Design by ER- and EER-to-Relational Mapping
Entity-Relationship Model and Diagrams (continued)
Relational Model and ER Model: in a Nutshell
Order Database – ER Diagram
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Conceptual Data Modeling Using Entities & Relationships
DBMS ER-Relational Mapping
Lesson Objectives Aims You should know about: 1.3.2:
Presentation transcript:

Conversion from ER diagram to relational model 1 ER is a visual model The relational model is a matemathical model

Conversion from ER diagram to relational model 2 Database development as part of systems development Analysis phase –Draw an ER-diagram Design phase –Convert ER-diagram to relational model. –Check if the relations are sufficiently normalized. Realization phase –Create tables in a DBMS.

Conversion from ER diagram to relational model 3 Procedure for conversion from ER to relational model Strong entity types –have their own relation with all the single- valued attributes. –composite attributes: Simple attributes (“leaves”) in the relations. –primary key transferred from ER to the relation.

Conversion from ER diagram to relational model 4 Binary relationships 1:1 Binary 1:1 relationships (rare) –data from the relationship (if any) integrated into one of the related entities [your choice]. –one of the related relations gets a foreign key to the other [your choice: easy to find a “way” from on to the other, but not vice versa] –1:1 relations are rare in ER-diagrams {they are usually modeled as a single entity }

Conversion from ER diagram to relational model 5 Binary relationships 1:N Binary relationships with cardinality 1:N –data from the relationship (if any) integrated into the relation with the “N” –The “N” relation has a foreign key to the “1” relation.

Conversion from ER diagram to relational model 6 Binary relationships N:M Binary relationships with cardinality N:M –Own relation with 2 foreign keys (1 for each of the relation entities) –Date (like timestamps, etc.) on the relationships goes into the relation.

Conversion from ER diagram to relational model 7 Multi valued attributes –Own relation –Foreign key to the “owning” relation.