CS FundamentalsHardGATE CS (PYQ pattern) · Product Company SDE

Relation R has 5500 tuples with 410 distinct values of the join attribute A, and S has 1600 tuples with 130 distinct values of A. Using the standard estimate, how many tuples does R ⋈ S have?

  1. A. 165.1
  2. B. 88,00,000
  3. C. 21,463.4
  4. D. 67,692.3

Correct answer: C. 21,463.4

Size ≈ |R||S| / max(V(A,R), V(A,S)) = 5500×1600/410 = 21,463.4. Dividing by the min overestimates.

More DBMS and SQL questions

Exams that ask this topic