Let be a many-to-many relationship between and . Participation of both and in is total.
The minimum number of relations required to convert the ER model into relational model (assuming there is no other functional dependency) where each relation is in third normal form (3NF) is __________ . (Answer in integer)
4.00
Step-by-Step Solution
Insight: Multi-valued attributes require a separate relation, and M:N relationships require a separate relation to achieve 1NF and 3NF.
Exam route: Count relations for each component. E1 -> 1 relation. E2 with multi-valued A22 -> 2 relations (one for simple attributes, one for multi-valued). M:N relationship R12 -> 1 relation. Total = 1 + 2 + 1 = 4.
Learning route:
To convert an ER model to a relational model in 3NF, we follow standard mapping rules:
- Strong Entity E1: Maps to 1 relation with PK .
- Strong Entity E2: Has a multi-valued attribute . To satisfy 1NF (and thus 3NF), multi-valued attributes must be separated. This creates 2 relations:
- with PK .
- with PK .
- M:N Relationship R12: Must map to a separate relation containing the primary keys of both participating entities: with PK .
Total number of relations = 1 (E1) + 2 (E2) + 1 (R12) = 4.
All resulting relations are in 3NF as there are no transitive dependencies.