CS FundamentalsHardGATE CS · Product placement

R(A, B) has 250 tuples and S(B, C) has 60 tuples, where B is the primary key of R and also the primary key of S. What are the minimum and maximum possible numbers of tuples in R ⋈ S?

  1. A. min 60, max 250
  2. B. min 0, max 60
  3. C. min 0, max 15000
  4. D. min 250, max 250

Correct answer: B. min 0, max 60

B is unique on both sides, so each tuple matches at most one partner; the join is at most min(250, 60) = 60 and can be 0.

More DBMS and SQL questions

Exams that ask this topic