Question: Let relations r 1 ( A , B , C ) and r 2 ( C , D , E ) have the following properties:

Let relations r1(A,B,C) and r2(C,D,E) have the following properties:
r1 has 20,000 tuples
r2 has 45,000 tuples
25 tuples of r1 fit on one block
30 tuples of r2 fit on one block
Answer the following questions for each of these scenarios.
(a) Assume that we have 101 buffer pages.
(b) Assume that we have 1001 buffer pages.
Estimate the number of block transfers and seeks required using each of the following join strategies for r1|||>|r2|| under the optimal arrangement:
Nested-loop join.
Block nested-loop join.
Sort-Merge join. (Assuming that r1 and r2 are not initially sorted on the join key, and we are using merge sort algorithm to sort)
Hash join.
Let relations r 1 ( A , B , C ) and r 2 ( C , D ,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!