CS FundamentalsHardProduct placement · DBMS interview

An ER diagram has entity sets E1, E2, E3. R1 relates E1 and E2 many-to-many. R2 relates E2 and E3 one-to-many (each E3 entity relates to at most one E2). E3 has a multivalued attribute phone. What is the minimum number of relational tables needed?

  1. A. 6
  2. B. 3
  3. C. 4
  4. D. 5

Correct answer: D. 5

E1, E2 and E3 need a table each; M:N R1 needs its own table; R2 folds into E3 as a foreign key; the multivalued phone needs a separate table: 5.

More DBMS and SQL questions

Exams that ask this topic