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?
- A. 165.1
- B. 88,00,000
- C. 21,463.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
- A B-tree node must fit in a 4096-byte block; each key takes 12 bytes and each child pointer 8 bytes. What is the maximum order p (maximum…
- 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…
- 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…
- A B-tree node must fit in a 4096-byte block; each key takes 16 bytes and each child pointer 6 bytes. What is the maximum order p (maximum…
- Relation R has 8000 tuples with 50 distinct values of the join attribute A, and S has 3600 tuples with 340 distinct values of A. Using the…
- Relation R has 10000 tuples with 470 distinct values of the join attribute A, and S has 5200 tuples with 100 distinct values of A. Using…