Professional Documents
Culture Documents
Jaafer Al-Saraireh 1
By
Prof. Jaafer Al-Saraireh
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
1
Resources and Objectives
3
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Chapter Outline
4
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
2
GOALS during Mapping
5
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
3
Figure 9.1 The ER conceptual schema diagram for the
COMPANY database.
7
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
4
ER-to-Relational Mapping Algorithm (contd.)
9
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
5
ER-to-Relational Mapping Algorithm (contd.)
11
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
6
ER-to-Relational Mapping Algorithm (contd.)
13
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Slide 9- 13 Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
7
FIGURE 3.17 TERNARY RELATIONSHIP: SUPPLY
15
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
8
Summary of Mapping constructs and constraints
17
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
EERM
18
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
9
Mapping EER Model Constructs to Relations
19
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
10
Mapping EER Model Constructs to Relations (contd.)
21
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
11
FIGURE 4.4
EER diagram notation for an attribute-defined specialization on
JobType.
23
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Slide 9- 24 Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
12
Mapping the EER schema in Figure 4.4 using option 8C
25
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
13
Mapping the EER schema in Figure 4.3b using option 8B.
27
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
FIGURE 4.5
An overlapping (non-disjoint) specialization.
28
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
14
Mapping Figure 4.5 using option 8D with Boolean
type fields Mflag and Pflag.
29
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
15
Fig. 9.5: Different Options for Mapping
Generalization Hierarchies - summary
31
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
16
FIGURE 4.7
A specialization lattice with multiple inheritance for a UNIVERSITY
database.
33
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
FIGURE 9.6
Mapping the EER specialization lattice in Figure 4.7 using
multiple options.
34
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
17
Mapping EER Model Constructs to Relations (contd.)
35
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
FIGURE 4.8
Two categories (union types): OWNER and REGISTERED_VEHICLE.
36
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
18
FIGURE 9.7
Mapping the EER categories (union types) in Figure 4.8 to relations.
37
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Mapping Exercise-1
Exercise 9.4 : Map this schema into a set of relations.
38
FIGURE 9.8
An ER schema for a
SHIP_TRACKING
database.
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
19
Mapping Exercise-2
Exercise 9.9 : Map this schema into a set of relations
39
FIGURE 9.9
EER diagram for a
car dealer
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
Chapter Summary
40
Princess Sumaya University for Technology - Fall 2020 Prof. Jaafer Al-Saraireh
20