Chapter02-02 Database Design - Transforming ERD Into Relation
Chapter02-02 Database Design - Transforming ERD Into Relation
Database Application
SAK 3408
CHAPTER 2
DATABASE DESIGN
Learning Objectives (W3)
2
2 23 6/11/02 1 Scissor
5 23 7/11/02 1 Stapler
1 4 4/11/02 3 Erasers
1 4 4/11/02 6 Rulers
2 23 6/11/02 1 Scissor
3 15 7/11/02 2 Pen
3 15 7/11/02 2 Notebook
5 23 7/11/02 1 Stapler
(b)
Foreign key
Foreign key
Figure 2.17 Mapping M:N relationship
Foreign key
Figure 2.18 Mapping a binary 1:1 relationship
(b) EMPLOYEE
relation with
recursive foreign
key
Mapping a unary M:N relationship
29
(a) Bill-of-materials
relationships (M:N)
(a)
(b) Mapping Supertype/subtype relationships to relations
35
Exercise (1)
36
phone
Exercise (2)
37
Exercise (3)
38
Exercise (4)
39
Exercise (5)
40
Exercise (6)
41
Name
Ability
Gameplay Platform
Exercise (7)
42