CS FundamentalsHardGATE CS (PYQ pattern) · Product Company SDE

Relation R has 10000 tuples with 470 distinct values of the join attribute A, and S has 5200 tuples with 100 distinct values of A. Using the standard estimate, how many tuples does R ⋈ S have?

  1. A. 1,106.4
  2. B. 15,200
  3. C. 1,10,638.3
  4. D. 88,510.6

Correct answer: C. 1,10,638.3

Size ≈ |R||S| / max(V(A,R), V(A,S)) = 10000×5200/470 = 1,10,638.3. Dividing by the min overestimates.

More DBMS and SQL questions

Exams that ask this topic