CS FundamentalsHardGATE CS

An ER diagram has entity Employee (key eid, composite attribute name, multivalued attribute phone), weak entity Dependent (partial key dname) identified by Employee through a 1:N relationship, and entity Project linked to Employee by the M:N relationship WorksOn. What is the minimum number of relations in a correct relational schema?

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

Correct answer: C. 5

Employee (with name flattened), EmpPhone for the multivalued attribute, Dependent (key eid + dname, absorbing its identifying relationship), Project and WorksOn: 5. Only the M:N relationship and the multivalued attribute need extra tables.

More DBMS and SQL questions

Exams that ask this topic