Combining CAR and TRUCK into a VEHICLE superclass is:
The Enhanced ER (EER) Model
Subclasses and superclasses, attribute inheritance, specialization and generalization, attribute-defined specialization, disjoint vs. overlapping and total vs. partial constraints, hierarchies and lattices, categories (union types) and aggregation.
How to read this page
Every original slide is shown unchanged. Yellow marks on a slide point to a numbered note: hover or tap a mark to jump to its note, and hover a note to see its marks. Questions tagged Past exam appeared on a real paper; Prediction questions are likely angles, not confirmed. Pick an answer to each question: a wrong pick tells you why it is wrong, so you can try again.
All 46 slides
- 1 The Enhanced Entity–Relationship (EER) Model
- 2 LEARNING GOALS
- 3 DATABASES SO FAR
- 4 TOPICS DISCUSSED IN CHAPTER 3
- 5 EER
- 6 CHAPTER OUTLINE
- 7 SUB CLASSES AND SUPER CLASSES
- 8 SUB CLASSES AND SUPER CLASSES
- 9 SUB CLASSES AND SUPER CLASSES
- 10 SUB CLASSES AND SUPER CLASSES
- 11 SUB CLASSES AND SUPER CLASSES
- 12 SUB CLASSES AND SUPER CLASSES
- 13 BASIC NOTATION
- 14 ATTRIBUTE INHERITANCE IN SUPERCLASS / SUBCLASS RELATIONSHIPS
- 15 WHEN IS IT NECESSARY TO INCLUDING SUPERCLASS/SUBCLASS RELATIONSHIP?
- 16 SPECIALIZATION
- 17 GENERALIZATION
- 18 GENERALIZATION
- 19 GENERALIZATION
- 20 ATTRIBUTE-DEFINED SPECIALIZATION IN EER DIAGRAMS
- 21 DISPLAYING AN ATTRIBUTE- DEFINED SPECIALIZATION IN EER DIAGRAMS
- 22 CONSTRAINTS ON SPECIALIZATION AND GENERALIZATION
- 23 CONSTRAINTS ON SPECIALIZATION AND GENERALIZATION
- 24 it
- 25 CONSTRAINTS ON SPECIALIZATION & GENERALIZATION
- 26 EXAMPLE OF DISJOINT & TOTAL PARTICIPATION
- 27 EXAMPLE OF DISJOINT & PARTIAL PARTICIPATION
- 28 EXAMPLE OF OVERLAPPING & TOTAL PARTICIPATION
- 29 EXAMPLE OF OVERLAPPING & PARTIAL PARTICIPATION
- 30 CONSTRAINTS ON SPECIALIZATION & GENERALIZATION
- 31 ANOTHER EXAMPLE OF DISJOINT & OVERLAPPING
- 32 HIERARCHIES, LATTICES, & SHARED SUB-CLASSES
- 33 HIERARCHIES, LATTICES & SHARED SUB-CLASSES
- 34 LATTICE EXAMPLE (UNIVERSITY)
- 35 LATTICE EXAMPLE (UNIVERSITY)
- 36 CATEGORIES (UNION TYPES)
- 37 CATEGORIES (UNION TYPES)
- 38 CATEGORIES (OWNER, AND REGISTERED_VE HICLE)
- 39 CATEGORIES (OWNER, AND REGISTERED_VE HICLE)
- 40 CATEGORIES INHERITANCE
- 41 CATEGORIES (UNION TYPES)
- 42 ACTIVITY
- 43 SOLUTION
- 44 AGGREGATIO N (BRIEFLY)
- 45 SUMMARY OF EER CONCEPTS
- 46 PROJECT FIRST STEPS
GENERALIZATION
Notes
Generalization: bottom-up, find a common superclass for existing entity types (CAR, TRUCK → VEHICLE).
Exam angle
ATTRIBUTE-DEFINED SPECIALIZATION IN EER DIAGRAMS
Notes
Attribute-defined (predicate-defined) specialization: membership decided by an attribute value (JobType).
CONSTRAINTS ON SPECIALIZATION AND GENERALIZATION
Notes
Disjointness: d = disjoint (at most one subclass), o = overlapping (may be in several). Completeness: total (double line, must be in one) or partial.
Memory trick Two independent questions: "can it be in two?" (d/o) and "must it be in one?" (total/partial).
Exam angle
A person can be both a STUDENT and an EMPLOYEE, and some people are neither. The specialization is:
HIERARCHIES, LATTICES, & SHARED SUB-CLASSES
Notes
Hierarchy: each subclass has one superclass. Lattice: a shared subclass has several superclasses (multiple inheritance).
Exam angle
A STUDENT_ASSISTANT that is both an EMPLOYEE and a STUDENT is a:
CATEGORIES (UNION TYPES)
Notes
Category (union type): a subclass of the UNION of different superclasses (OWNER is a PERSON or BANK or COMPANY). Inherits from only the one it belongs to.
Trap Shared subclass = in ALL its superclasses (intersection). Category = in ONE of them (union).
AGGREGATIO N (BRIEFLY)
Notes
Aggregation: treat a relationship as a higher-level entity so it can join other relationships.