Professional Documents
Culture Documents
Entity Modeling2
Entity Modeling2
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-
Employee
division-
depart
Department dept-
Employee
employee
Add the third relationship
linking employee to the division
Division Division-
Employe
e
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
• So make them simple, transform to three
two type relationships
Part
P-C
M
1 1