CS FundamentalsVery hardGATE CS (PYQ pattern)

An ER design has three strong entity sets, one weak entity set (identified through one of them), one multivalued attribute on a strong entity, one ternary many-to-many-to-many relationship, one 1:N relationship and a specialisation of a strong entity into two subclasses (mapped as a superclass table plus one table per subclass). Using the mapping with the fewest standard tables, how many relations result?

  1. A. 7
  2. B. 9
  3. C. 8
  4. D. 10

Correct answer: C. 8

Tables: 3 strong entities + 1 weak entity + 1 for the multivalued attribute + 1 for the ternary relationship + 2 subclass tables = 8. The 1:N relationship becomes a foreign key in the N-side table, and the weak entity's identifying relationship is folded into its own table.

More DBMS and SQL questions

Exams that ask this topic