# Question: Let relations r1 A B C and r2 C D E have the following

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, and 30 tuples of r2 fit on one block. Estimate the number of block accesses required, using each of the following join strategies for r1 Θ r2:

a. Nested-loop joins

b. Block nested-loop joins

c. Merge joins

d. Hash joins

a. Nested-loop joins

b. Block nested-loop joins

c. Merge joins

d. Hash joins

**View Solution:**## Answer to relevant Questions

Design a variant of the hybrid mergeâ€“join algorithm for the case where both relations are not physically sorted, but both have a sorted secondary index on the join attributes.The hash join algorithm as described in Section computes the natural join of two relations. Describe how to extend the hash join algorithm to compute the natural left outer join, the natural right outer join and the natural ...Suppose that a B+-tree index on (branch-name, branch-city) is available on relation branch. What would be the best way to handle the following selection? σ (branch-cityA set of equivalence rules is said to be complete if, whenever two expressions are equivalent, one can be derived from the other by a sequence of uses of the equivalence rules. Is the set of equivalence rules that we ...Justify the following statement: Concurrent execution of transactions is more important when data must be fetched from (slow) disk or when transactions are long, and is less important when data is in memory and transactions ...Post your question