for each tuple tr in r do begin [code] for each tuple ts in s do begin test pair (tr , ts ) to see if they satisfy the join condition _ if

for each tuple tr in r do begin
Code:
for each tuple ts in s do begin
test pair (tr , ts ) to see if they satisfy the join condition _
if they do, add tr • ts to the result;
end
end
What type of join is this?
A. Equi join
B. Hash join
C. Nested loop join
D. Block nested loop join
 
Answer: c
Explanation: The given algorithm is called as a nested loop join because it basically consists of two nested for loops in it i.e. one for loop is inside another for loop.
 

Tìm kiếm

Back
Top