CS FundamentalsHardGATE CS (PYQ pattern) · Product Company SDE

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

  1. A. 79,483.9
  2. B. 99,354.8
  3. C. 1,241.9
  4. D. 3,85,000

Correct answer: B. 99,354.8

Size ≈ |R||S| / max(V(A,R), V(A,S)) = 7000×4400/310 = 99,354.8. Dividing by the min overestimates.

More DBMS and SQL questions

Exams that ask this topic