CS FundamentalsHardGATE CS (PYQ pattern) · Product Company SDE

Relation R has 6000 tuples with 160 distinct values of the join attribute A, and S has 4400 tuples with 390 distinct values of A. Using the standard estimate, how many tuples does R ⋈ S have?

  1. A. 10,400
  2. B. 1,65,000
  3. C. 423.1
  4. D. 67,692.3

Correct answer: D. 67,692.3

Size ≈ |R||S| / max(V(A,R), V(A,S)) = 6000×4400/390 = 67,692.3. Dividing by the min overestimates.

More DBMS and SQL questions

Exams that ask this topic