6.6
Consider the representation of the ternary relationship of Figure 6.29a using the binary relationships illustrated in Figure 6.29b (attributes not shown).
Show a simple instance of
, , , , , , and that cannot correspond to any instance of , , , and . Modify the E-R diagram of Figure 6.29b to introduce constraints that will guarantee that any instance of
, , , , , , and that satisfies the constraints will correspond to an instance of , , , and . Modify the preceding translation to handle total participation constraints on the ternary relationship.
Let
, , , , , , . We see that because of the tuple , no instance of , , , and exists that correspond to , , , andSee Figure 6.105. The idea is to introduce total participation constraints between
and the relationships , , so that every tuple in has a relationship with , , and .
- Suppose
totally participates in the relationship , then introduce a total participation constraint between and , and similarly for and .