CS FundamentalsHardGATE CS (PYQ pattern) · Product Company SDE

Relation R has 2000 tuples with 460 distinct values of the join attribute A, and S has 8000 tuples with 70 distinct values of A. Using the standard estimate, how many tuples does R ⋈ S have?

  1. A. 2,28,571.4
  2. B. 27,826.1
  3. C. 34,782.6
  4. D. 496.9

Correct answer: C. 34,782.6

Size ≈ |R||S| / max(V(A,R), V(A,S)) = 2000×8000/460 = 34,782.6. Dividing by the min overestimates.

More DBMS and SQL questions

Exams that ask this topic