CS FundamentalsHardGATE CS · PSU (ISRO/BARC)

R(A, B) has 400 tuples and S(B, C) has 80 tuples, where B is the primary key of S, and R.B may contain values absent from S (no foreign key). What are the minimum and maximum possible numbers of tuples in R ⋈ S?

  1. A. min 400, max 400
  2. B. min 0, max 80
  3. C. min 0, max 32000
  4. D. min 0, max 400

Correct answer: D. min 0, max 400

Each R tuple matches at most one S tuple because B is S's key, but without a foreign key it may match none: 0 to 400.

More DBMS and SQL questions

Exams that ask this topic