CS FundamentalsHardGATE CS · PSU (ISRO/BARC)

R occupies 600 blocks and S occupies 400 blocks. Ignoring the cost of writing the result, what is the cost of a hash join (partitioning both relations once, no recursive partitioning, no overflow)?

  1. A. 3,000 block transfers
  2. B. 240,000 block transfers
  3. C. 1,000 block transfers
  4. D. 2,000 block transfers

Correct answer: A. 3,000 block transfers

Partitioning reads and writes both relations (2 × 1000) and the probe phase reads them once more (1000): 3(bR + bS) = 3000.

More DBMS and SQL questions

Exams that ask this topic