




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
chapter 03 full slides for database course
Typology: Lecture notes
1 / 36
This page cannot be seen from the preview
Don't miss anything!





























© 2013 Pearson Education, Inc. Publishing as Prentice Hall
th
Jeffrey A. Hoffer, V. Ramesh, Heikki Topi
Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall
(^) Define termsDefine terms Understand use of supertype/subtype relationshipsUnderstand use of supertype/subtype relationships Understand use of specialization andUnderstand use of specialization and generalization techniques generalization techniques Specify completeness and disjointness constraintsSpecify completeness and disjointness constraints (^) Develop supertype/subtype hierarchies for realisticDevelop supertype/subtype hierarchies for realistic business situations business situations Develop entity clustersDevelop entity clusters (^) Explain universal (packaged) data modelExplain universal (packaged) data model Describe special features of data modeling projectDescribe special features of data modeling project using packaged data model using packaged data model
Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall
with new modeling constructs with new modeling constructs
type that has attributes distinct from those in other type that has attributes distinct from those in other subgroupings subgroupings
relationship with one or more subtypes relationship with one or more subtypes
(^) Subtype entities inherit values of all attributes of theSubtype entities inherit values of all attributes of the supertype supertype (^) An instance of a subtype is also an instance of theAn instance of a subtype is also an instance of the supertype supertype
Figure 3-1 Basic notation for supertype/subtype notation a) EER notatio n Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall
Figure 3-2 Employee supertype with three subtypes All employee subtypes will have employee number, name, address, and date hired Each employee subtype will also have its own attributes Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall
Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall
Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall
Figure 3-3 Supertype/subtype relationships in a hospital Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall
Figure 3-4 Example of generalization a) Three entity types: CAR, TRUCK, and MOTORCYCLE All these types of vehicles have common attributes Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall
Figure 3-4 Example of generalization (cont.) So we put the shared attributes in a supertype Note: no subtype for motorcycle, since it has no unique attributes b) Generalization to VEHICLE supertype Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall
b) Specialization to MANUFACTURED PART and PURCHASED PART Note: multivalued composite attribute was replaced by an associative entity relationship to another entity Created 2 subtypes Figure 3-5 Example of specialization (cont.) Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall
Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall
(^) Total Specialization Rule: Yes (double line) (^) Partial Specialization Rule: No (single line)
b) Partial specialization rule Figure 3-6 Examples of completeness constraints (cont.) Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall
Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall
(^) Disjoint Rule: An instance of the supertype can be only ONE of the subtypes (^) Overlap Rule: An instance of the supertype could be more than one of the subtypes Chapter 3 © 2013 Pearson Education, Inc. Publishing as Prentice Hall© 2013 Pearson Education, Inc. Publishing as Prentice Hall