CS FundamentalsHardGATE CS · Product placement

R(A, B) has 300 tuples and S(B, C) has 50 tuples, where S.B is the primary key of S and R.B is a foreign key referencing it (NOT NULL). What are the minimum and maximum possible numbers of tuples in R ⋈ S?

  1. A. min 50, max 300
  2. B. min 0, max 50
  3. C. min 0, max 15000
  4. D. min 300, max 300

Correct answer: D. min 300, max 300

Every R tuple must match exactly one S tuple (the FK guarantees existence, the key uniqueness), so the join has exactly 300 tuples.

More DBMS and SQL questions

Exams that ask this topic