Consider the following diagram
The minimum number of tables needed to represent , , , , is
GATE CSE 2008Databases › ER Modeling & Relational Model FundamentalsVerified
(B) 3 3 3
Apply standard ER-to-relational mapping rules and keep the count minimal by (i) merging a binary relationship into the table of the entity that participates totally on the 'many' side, provided the relationship itself has no descriptive attributes, and (ii) representing a weak entity together with its identifying relationship by folding the owner's primary key into the weak entity's own table instead of creating an extra table for the identifying relationship. The picture of the diagram supplied with the crop contains only the question stem, so the structural facts (M and P are strong entities, N is a weak entity owned by P, R1 links M and P with total participation of M and has no attributes) are taken from the unanimous community description of this GATE 2008 question.
Using the standard ER-to-relational mapping: the two strong entities M and P each become a relation; the attribute-free relationship R1, on which M participates totally on the many side, is merged into M by adding P1 as a foreign key; and the weak entity N, owned by P through R2, becomes a relation whose key is the owner key combined with N's partial key. The minimal schema is M(M1, M2, M3, P1), P(P1, P2), N(P1, N1, N2) - three tables - so option B is correct.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.