# Question: 3 consider two relations r 200 blocks and s 30...

###### Question details

3. Consider two relations r (200 blocks) and s (30 blocks)

a. What is the cost of performing a block nested-loop join, given that we have 8 memory blocks?

b. Reverse the inner and outer relation from part a) and compute block nested-loop join again. Is the resulting cost higher or lower?

c. What if we had 35 blocks of memory available instead of 8 – what would be the cost of block nested-loop join?