CS FundamentalsVery hardGATE CS · TCS Digital

Relation R has 1,000 tuples with 100 distinct values of attribute A, and S has 500 tuples with 50 distinct values of A, all of which appear in R. Using the standard uniform-distribution estimate, how many tuples does R JOIN S on A produce?

  1. A. 500
  2. B. 1000
  3. C. 5000
  4. D. 10000

Correct answer: C. 5000

Estimated size = (|R| x |S|) / max(V(R,A), V(S,A)) = 500,000 / 100 = 5,000.

More DBMS and SQL questions

Exams that ask this topic