CS FundamentalsModerateGATE CS (PYQ pattern)

Entity sets A (6 entities) and B (9 entities) are linked by relationship R. Every A entity must take part in R (total participation) and each A takes part at most 2 times; each B entity takes part at most once (partial participation). What are the minimum and maximum possible numbers of tuples in R?

  1. A. 6 and 9
  2. B. 6 and 12
  3. C. 9 and 12
  4. D. 1 and 9

Correct answer: A. 6 and 9

Minimum: every A appears at least once and B allows each tuple a distinct B, so 6. Maximum: each B can appear at most once, so at most 9 tuples, which is reachable (e.g. 3 A entities with 2 tuples and 3 with 1). The A-side cap 6 x 2 = 12 is not binding.

More DBMS and SQL questions

Exams that ask this topic