Figure Specialization Hierarchy

Slides:



Advertisements
Similar presentations
Advanced Data Modeling
Advertisements

Database Systems: Design, Implementation, and Management Eighth Edition Chapter 6 Advanced Data Modeling.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 5 Advanced Data Modeling.
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 6 Advanced Data Modelling
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 6 Advanced Data Modeling.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 6 Advanced Data Modeling.
Chapter 5 Understanding Entity Relationship Diagrams.
Mapping an ERD to a Relational Database To map an ERD to a relational database, five rules are defined to govern how tables are constructed. 1)Rule for.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Developing Data Models for Business Databases.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
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.
Chapter Five Data Modeling with the Entity-Relationship Model.
Chapter 6 Developing Data Models for Business Databases.
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 Systems: Design, Implementation, and Management Tenth Edition Chapter 5 Advanced Data Modeling.
DATA MODELING AND DATABASE DESIGN
Chapter 8 Data Modeling Advanced Concepts Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Database Design, Application Development, and Administration, 5 th Edition Copyright © 2011 by Michael V. Mannino All rights reserved. Chapter 6 Developing.
IS 475/675 - Introduction to Database Design
Database Design – Lecture 5 Conceptual Data Modeling – adding attributes.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
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.
Database Design – Lecture 8
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 6 Advanced Data Modeling.
Database Systems: Design, Implementation, and Management Ninth Edition
Logical Database Design and the Relational Model.
Lecture 4: Logical Database Design and the Relational Model 1.
Ch 05. Basic Symbols ( manino ). Cardinalities Cardinality Notation.
Chapter 5 Understanding Entity Relationship Diagrams.
Data Modeling Advanced Concepts Updated 20/4/2015 TMC2034 Database Concept and Design1.
BTM 382 Database Management Chapter 5: Advanced Data Modeling
Lecture # 14 Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
1 Database Design Sections 6 & 7 First Normal Form (1NF), Second Normal Form (2NF), Unique Identifiers (UID), Third Normal Form (3NF), Arcs, Hierarchies.
CSIS 115 Database Design and Applications for Business
TMC2034 Database Concept and Design
Relational Database Design by ER- and EER-to- Relational Mapping
Revised: 2 April 2004 Fred Swartz
Chen’s Type Guidance.
Chapter 5: Logical Database Design and the Relational Model
Tables and Their Characteristics
Database Design – Lecture 4
Chapter (9) ER and EER-to-Relational Mapping, and other Relational Languages Objectives How a relational database schema can be created from a conceptual.
Fundamentals/ICY: Databases 2010/11 WEEK 6
Developing Data Models – Conversion Rules
Chapter (9) ER and EER-to-Relational Mapping, and other Relational Languages Objectives How a relational database schema can be created from a conceptual.
Implementation of Entity Relationships
Databases and Information Management
Chapter 3 The Relational Database Model
Relational Model and ER Model: in a Nutshell
מודל הנתונים.
IST 318 Database Administration
בסיסי נתונים - מצגת ההרצאה - 1.
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 1: The Database Environment
Chapter 5 Advanced Data Modeling
Chapter 3: Modeling Data in the Organization
Relational Database Design by ER- and EER-to- Relational Mapping
Chapter 4 Entity Relationship (ER) Modeling
Guide to Modeling Keys to E-R diagrams.
Mapping an ERD to a Relational Database
Relational Database Design by ER- and EER-to-Relational Mapping
Introduction to modeling
Guide to Modeling Keys to E-R diagrams.
Chapter (7) ER-to-Relational Mapping, and other Relational Languages
Entity Relationship (ER) Modeling
Chapter # 4 Entity Relationship (ER) Modeling.
Mapping an ERD to a Relational Database
Presentation transcript:

Figure 5.2 - Specialization Hierarchy

Figure 5.4 - Specialization Hierarchy with Overlapping Subtypes

Table 5.1 - Discriminator Attributes with Overlapping Subtypes

Table 5.2 - Specialization Hierarchy Constraint Scenarios

Figure 5.5 - Tiny College ERD Using Entity Clusters

Desirable Primary Key Characteristics Non intelligent No change over time Preferably single-attribute Preferably numeric Security-compliant Non-intelligent

Figure 5.6 - The M:N Relationship between STUDENT and CLASS

Table 5.4 - Data Used to Keep Track of Events

Table 5.5 - Selection of Foreign Key in a 1:1 Relationship CASE ER Relationship Constraint Action 1 One side is mandatory and the other side is optional Place the PK of the entity on the mandatory side in the entity of the optional side as a FK, and make the FK mandatory. 2 Both sides are optional. Select the FK that causes the fewest NULLs, or place the FK in the entity in which the (relationship) role is played. 3 Both sides are mandatory. See case 2, or consider revising your model to ensure that the two entities do not belong together in a single entity.

Figure 5.7 - The 1:1 Relationship between Department and Employee

Figure 5.8 - Maintaining Salary History

Figure 5.9 - Maintaining Manager History

Figure 5.10 - Maintaining Job History

Figure 5.11 - Incorrect ERD with Fan Trap Problem This is ok, but there is no way to identify which players belong to which team. Note that the relationship lines for the DIVISION instances fan out to the TEAM and PLAYER entity instances— thus the “ fan trap” label.

Figure 5.12 - Corrected ERD After Removal of the Fan Trap Here the fan trap is been eliminated by the proper identification of the relationships. DIVISION is in a 1:M relationship with TEAM. In turn, TEAM is in a 1:M relationship with PLAYER..

Figure 5.13 - A Redundant Relationship Note the transitive 1: M relationship between DIVISION and PLAYER through the TEAM entity set. Therefore, the relationship that connects DIVISION and PLAYER is redundant, for all practical purposes. In that case, the relationship could be safely deleted without losing any information- generation capabilities in the model.