Professional Documents
Culture Documents
Entity Modeling 2
Entity Modeling 2
Some problems
• Misinterpretation
• Fan traps
• Chasm trap
Misinterpretation
Lecturer Students
teaches
The relationship should be
Students
study
has
Department
Solution
Division
has
has
has
Department Employee
Chasm trap solutions
• Create the dummy department in the
implementation
or
• Add the third relationship linking
employee to the division
Create the dummy department
in the implementation
• We create the department that means no
department
Add the third relationship
linking employee to the division
Division Division-
Employe
e
division-
depart
division-
depart
M N
Supplier M N Part Customer
Sup Part-
p- Cust
Part ome
r
The situation can not be resolved by adding
the relationship
Supplier Part
Supp-Part
Part-Cust
Customer
Supp
-Cust
The possible solution is three
entity type relationship
Part
Supplier Customer
Supp-
Part-
Custome
r
Decomposition of Complex
Relationships
• We have more than 2 entities in one
relationship
Part
P
C
M
1 1
Cont
Supplier S ract C Customer
C C