Professional Documents
Culture Documents
RELATED CONCEPTS
Information Systems
June 2021
Course outline
3 Specialization hierarchy
4
Inheritance
5 Sub-type discriminator
9 Entity clustering
10 Entity integrity
2 2
Course outline Conti…
12 Composite key
13 Surrogate key
14 Design Case 1: Implementing 1:1 Relationship
3 3
Chapter Overview/ Leaning Objectives
4 4
Extended Entity Relationship Model
5 5
Entity Super types and Sub-types
Entity subtype
○ Contains unique characteristics of each entity subtype
6 6
Entity Super types and Sub-types Conti.
Contains unique
Entity characteristics/attributes
Subtype i.e. Male carries that are unique to
it so does Female
7 7
Entity Super types and Sub-types Conti.
9 9
Specialization Hierarchy (2/3)
10 10
Specialization Hierarchy (3/3)
11 11
Inheritance (1 of 2)
12 12
Inheritance (2 of 2)
13 13
Subtype Discriminator
14 14
Disjoint and Overlapping Constraints
15 15
Inheritance
16 16
Disjoint and Overlapping Constraints
17 17
Completeness Constraint
18 18
Specialization and Generalization (1 of 2)
Specialization
○ Top-down process (i.e. starts from an entity supertype)
○ Identifies more specific entity subtypes from higher-level entity supertype
○ Based on grouping unique characteristics and relationships of the
subtypes
○ Identify attributes for each entity subtype
19 19
Specialization and Generalization (2 of 2)
Generalization
○ Bottom-up process (i.e. starts from subtype)
○ Identifies a lower-level, more generic entity supertype from lower-level
entity subtypes
○ Based on grouping common characteristics and relationships of the
subtypes
20 20
Entity Clustering (1 of 2)
21 21
Entity Clustering (2 of 2)
22 22
Entity Integrity: Selecting Primary Keys
23 23
Natural Keys and Primary Keys
24 24
Primary Key Guidelines
25 25
When to Use Composite Primary Keys (1 of 2)
26 26
When to Use Composite Primary Keys (2 of 2)
27 27
When to Use Surrogate Primary Keys (1/2)
28 28
When to Use Surrogate Primary Keys (2/2)
29 29
Design Case 1: Implementing 1:1 Relationships (1 of 2)
I One side is mandatory and the other Place the PK of the entity on the mandatory side in the entity
side on the optional side as a FK, and make the FK mandatory
II 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
III Both sides are mandatory See Case II, or consider revising your model to ensure that the
two entities do not belong together in a single entity
30 30
Design Case 1: Implementing 1:1 Relationships (1 of 2)
31 31
Design Case 2: Maintaining History of Time-Variant Data
(1 of 4)
32 32
Design Case 2: Maintaining History of Time-
Variant Data (2 of 4)
33 33
Design Case 2: Maintaining History of Time-Variant
Data (4 of 4)
34 34
Design Case 3: Fan Traps (1 of 2)
35 35
Design Case 3: Fan Traps (2 of 2)
VS.
36 36
Design Case 4: Redundant Relationships
37 37
Summary
38 38