Database Design Using Entity-Relationship Models Transformation of Entity-Relationship Models into Relational Database Design Trees, Networks, and Bills.

Slides:



Advertisements
Similar presentations
Database Processing: Fundamentals, Design, and Implementation, 9/e by David M. KroenkeChapter 5/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Advertisements

ERD diagram Data Design - Mr. Ahmad Al-Ghoul
IT420: Database Management and Organization
Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
Concepts of Database Management Sixth Edition
© 2002 by Prentice Hall 1 SI 654 Database Application Design Winter 2003 Dragomir R. Radev.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Fundamentals, Design, and Implementation, 9/e COS 346 Day 8.
© 2005 by Prentice Hall 1 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 7 th Edition Jeffrey A. Hoffer, Mary B.
Fundamentals, Design, and Implementation, 9/e Chapter 5 Database Design.
Entity Relationship Modeling BUS112 Professor Kwan.
Chapter Five Data Modeling with the Entity-Relationship Model.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 6 Database Design Using Entity- Relationship Models.
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
System Analysis and Design
Entity-Relationship Model
Chapter Five Data Modeling with the Entity-Relationship Model.
Database Design.  Define a table for each entity  Give the table the same name as the entity  Make the primary key the same as the identifier of the.
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
 Keys are special fields that serve two main purposes: ◦ Primary keys are unique identifiers of the relation in question. Examples include employee numbers,
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
Chapter 5 1 © Prentice Hall, 2002 Chapter 5: Transforming EER Diagrams into Relations Mapping Regular Entities to Relations 1. Simple attributes: E-R attributes.
Database Design Concepts
Chapter 4 The Relational Model.
Converting ER model Into Relational Table
Database Design Chapter Five DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Database R.Fröhlich, M. Schaffer, J. Konicek Database Relationship Types Different Relationship Types in a Logical Relational Model.
© 2002 by Prentice Hall 1 Database Design David M. Kroenke Database Concepts 1e Chapter 5 5.
PLUG IT IN 3 Fundamentals of Relational Database Operations.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Data Modeling IST210 Class Lecture.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
 Entity-relationship models (ERM) Entity-relationship models (ERM)  Simple E-R Diagram Simple E-R Diagram  Weak Entity Weak Entity  Strong Entity.
In this session, you will learn to: Map an ER diagram to a table Objectives.
Chapter 13 Designing Databases Systems Analysis and Design Kendall & Kendall Sixth Edition.
ENTITY RELATIONSHIP DIAGRAM ENTITY RELATIONSHIP DIAGRAM IS A SPECIALIZED GRAPHIC THAT ILLUSTRATES THE INTERRELATIONSHIPS BETWEEN ENTITIES IN A DATABASE.
Relational Theory and Design
Database Design With Semantic Object Models
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
Entity relationship diagram Name: Quian Crosby Form:6AQ Subject: Information Technology Teacher: Ms. D. Anderson.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
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-
1 © Prentice Hall, 2002 ITD1312 Database Principles Chapter 4B: Logical Design for Relational Systems -- Transforming ER Diagrams into Relations Modern.
Slide 1 Chapter 05 – Part 2 Data Modeling with the Entity-Relationship Model.
Logical Database Design and the Relational Model.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Five: Data Modeling with the Entity-Relationship.
Lecture 4: Logical Database Design and the Relational Model 1.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
Database vs File System Integrated Data Reduced Data Duplication Program/Data Independence Easier representation for user Separate/Isolated data Appl.
IT 5433 LM2 ER & EER Model. Learning Objectives: Explain importance of data modeling Define and use the entity-relationship model Define E/R terms Describe.
Chapter 4: Logical Database Design and the Relational Model
Database.
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Presentation transcript:

Database Design Using Entity-Relationship Models Transformation of Entity-Relationship Models into Relational Database Design Trees, Networks, and Bills of Materials

Transformation of ERM into Relational Database Designs Representing Entities (incl. Weak Entities) Representing HAS-A Relationships Representing Recursive Relationships Representing IS-A Relationships (Subtypes)

Representing Entities With Relations At first you construct a relation to include all of the entity’s attributes. Then you normalize this relation (you may develop sets of relations in DK/NF). Fig. 6-1,2,3 For ID-dependent weak entities the key should be the key of the parent and the key of the entity itself. Fig. 6-4

Representing Binary HAS-A Relationships One-to-One Relationships Each entity is represented by a relation The key of one of the relations is stored as a foreign key in the other. Fig. 6-5,6 One-to-Many Relationships One-to-many are parent-to-child(ren) Each entity is represented by a relation The key of the parent relation is stored as a foreign key in the child relation. Fig. 6-8,9,10

Many-to-Many Relationships Each entity is represented by a relation A third relation, the intersection relation, is used to represent the relationship itself. The data structure diagram Fig. 6-11,12,13,14

Representing Recursive Relationships Recursive relationships may be 1:1, 1:N, or N:M Each type is represented the same way as the corresponding type of HAS-A relationships described earlier. With many-to-many recursive relationships the rows of the tables can be parent or child rows. Fig. 6-15,16,17,18

Representing IS-A Relationships (Subtypes) One relation is needed for the supertype and one relation for each subtype. The key of the subtype relations may be the key of the supertype. One or more of the subtypes may have a key of its own. Example pg. 153 and fig. 6-19

Trees, Networks, and Bills of Materials Trees Trees or hierarchies; Nodes; Branches; Parent; Children; Twins or siblings. A hierarchy or tree is a collection of records organized in such a way that all relationships are 1:N. All records (except the root) in a tree have exactly one parent. Fig. 6-20

Simple Networks A simple network is a data structure of elements with one- to-many relationships. Elements may have more than one parent as long as the parents are of different types. Fig. 6-21,22,23 Complex Networks One of the relationships among entities is a many-to- many relationship. Requires an intersection relation. Fig. 6-24

Bills of Materials ç It is a special form of a network. ç Most commonly represented as a M:N recursive relationship. Fig. 6-26