Decomposing Ternary relationships
When a relationship is three-way (ternary) four preliminary tables are required: one for each entity, with the entity key from each entity serving as the primary key for the corresponding table, and one for the relationship.
The table corresponding to the relationship will have among its attributes the entity keys from each entity
Similarly, when a relationship is N-way, N+1 preliminary tables are required.