Database Systems: Design, Implementation, and Management Eighth Edition Chapter 6 Advanced Data Modeling.

Slides:



Advertisements
Similar presentations
THE EXTENDED ENTITY RELATIONSHIP MODEL (EERM)
Advertisements

Chapter 3: The Enhanced E-R Model
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: The Enhanced E-R Model Modern Database Management 10 th Edition Jeffrey A. Hoffer,
Chapter 3  Define terms  Understand use of supertype/subtype relationships  Understand use of specialization and generalization techniques  Specify.
Advanced Data Modeling
Entity Relationship (ER) Modeling
Database Processing: Fundamentals, Design, and Implementation, 9/e by David M. KroenkeChapter 5/1 Copyright © 2004 Please……. No Food Or Drink in the class.
1 © Prentice Hall, 2002 Chapter 4: The Enhanced E-R Model and Business Rules Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 CHAPTER 4: THE ENHANCED E-R MODEL Modern Database Management 11 th Edition Jeffrey.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
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.
CHAPTER 3: THE ENHANCED E-R MODEL © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer,
Entity Relationship (E-R) Modeling
1 © Prentice Hall, 2002 Chapter 4: The Enhanced E-R Model and Business Rules Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Chapter 4 © 2005 by Prentice Hall 1 Objectives Definition of terms Definition of terms Use of supertype/subtype relationships Use of supertype/subtype.
Fundamentals, Design, and Implementation, 9/e Chapter 5 Database Design.
The Enhanced E-R (EER) Model
IS 4420 Database Fundamentals Chapter 4: The Enhanced ER Model and Business Rules Leon Chen.
Chapter 4 Entity Relationship (E-R) Modeling
Chapter 4: The Enhanced E-R Model and Business Rules
1 Chapter 4 Enhanced E-R Model. 2 Supertypes and Subtypes Subtype: A subgrouping of the entities in an entity type which has attributes that are distinct.
Chapter 3: The Enhanced E-R Model
1 Chapter 4: The Enhanced ER Model and Business Rules.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 The Relational Model (Advanced)
 Keys are special fields that serve two main purposes: ◦ Primary keys are unique identifiers of the relation in question. Examples include employee numbers,
3 Chapter 3 Entity Relationship (E-R) Modeling Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 5 Advanced Data Modeling.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: The Enhanced E-R Model Modern Database Management 10 th Edition Jeffrey A. Hoffer,
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Chapter 8 Data Modeling Advanced Concepts Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
IS 475/675 - Introduction to Database Design
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
1 The Enhanced Entity Relationship Diagrams (E-ERDs)
Chapter 3: The Enhanced E-R Model
CHAPTER 3: THE ENHANCED E-R MODEL © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer,
© 2011 Pearson Education 1 Chapter 3: Advanced Database Analysis Modern Database Management 10 th Edition, International Edition Jeffrey A. Hoffer, V.
CHAPTER 3: THE ENHANCED E-R MODEL © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer,
Database Systems Supertypes and Subtypes Lecture # 10.
Entity Relationship Modeling
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 6 Advanced Data Modeling.
Database Systems: Design, Implementation, and Management Ninth Edition
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
CST203-2 Database Management Systems Lecture 4. Student entity NIDFNameLNameRegNoExamIdBirthdate.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 4: The Enhanced E-R Model Modern Database Management 9 th Edition Jeffrey A. Hoffer,
Advance Database Engineering 1 Chapter 4: The Enhanced ER Model and Business Rules Modern Database Management 7 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Mapping Constraints Keys.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 3: THE ENHANCED.
Data Modeling Advanced Concepts Updated 20/4/2015 TMC2034 Database Concept and Design1.
BTM 382 Database Management Chapter 5: Advanced Data Modeling
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.
Lecture # 14 Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
© 2005 by Prentice Hall 1 Chapter 4: The Enhanced ER Model and Business Rules Modern Database Management 7 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
LECTURE 4: Chapter 4: The Enhanced E-R Model
Advanced Database Analysis
Relational Database Design by ER- and EER-to- Relational Mapping
Chapter 4: Logical Database Design and the Relational Model
ER example : movie & category
Database Management System 1 (ITED123A)
Chapter 3: The Enhanced E-R Model
Overview of Entity‐Relationship Model
CHAPTER 3: THE ENHANCED E-R MODEL
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Chapter 5 Advanced Data Modeling
Database Management system
Entity Relationship (ER) Modeling
Presentation transcript:

Database Systems: Design, Implementation, and Management Eighth Edition Chapter 6 Advanced Data Modeling

Database Systems, 8 th Edition 2 The Extended Entity Relationship Model Result of adding more semantic constructs to original entity relationship (ER) model Diagram using this model is called an EER diagram (EERD)

Database Systems, 8 th Edition 3 Entity Supertypes and Subtypes Entity supertype –Generic entity type related to one or more entity subtypes –Contains common characteristics Entity subtypes –Contains unique characteristics of each entity subtype

Database Systems, 8 th Edition 4

5 Specialization Hierarchy Depicts arrangement of higher-level entity supertypes and lower-level entity subtypes Relationships described in terms of “IS-A” relationships Subtype exists only within context of supertype Every subtype has only one supertype to which it is directly related Can have many levels of supertype/subtype relationships

Database Systems, 8 th Edition 6

7 Inheritance Enables entity subtype to inherit attributes and relationships of supertype All entity subtypes inherit their primary key attribute from their supertype At implementation level, supertype and its subtype(s) maintain a 1:1 relationship Entity subtypes inherit all relationships in which supertype entity participates Lower-level subtypes inherit all attributes and relationships from all upper level-supertypes

Database Systems, 8 th Edition 8

9 Subtype Discriminator Attribute in supertype entity –Determines to which entity subtype each supertype occurrence is related Default comparison condition for subtype discriminator attribute is equality comparison Subtype discriminator may be based on other comparison condition

Database Systems, 8 th Edition 10 Disjoint and Overlapping Constraints Disjoint subtypes –Also known as non-overlapping subtypes –Subtypes that contain unique subset of supertype entity set Overlapping subtypes –Subtypes that contain nonunique subsets of supertype entity set

Database Systems, 8 th Edition 11

Database Systems, 8 th Edition 12

Database Systems, 8 th Edition 13 Completeness Constraint Specifies whether entity supertype occurrence must be a member of at least one subtype Partial completeness –Symbolized by a circle over a single line –Some supertype occurrences that are not members of any subtype Total completeness –Symbolized by a circle over a double line –Every supertype occurrence must be member of at least one subtype

Database Systems, 8 th Edition 14

Database Systems, 8 th Edition 15 Primary Key Guidelines Attribute that uniquely identifies entity instances in an entity set –Could also be combination of attributes Main function is to uniquely identify an entity instance or row within a table Guarantee entity integrity, not to “describe” the entity Primary keys and foreign keys implement relationships among entities –Behind the scenes, hidden from user

Database Systems, 8 th Edition 16

Database Systems, 8 th Edition 17 When To Use Surrogate Primary Keys Especially helpful when there is: –No natural key –Selected candidate key has embedded semantic contents –Selected candidate key is too long or cumbersome

Database Systems, 8 th Edition 18 When To Use Surrogate Primary Keys (continued) If you use surrogate key –Ensure that candidate key of entity in question performs properly –Use “unique index” and “not null” constraints

Database Systems, 8 th Edition 19