Complete the code to describe the basic operation of a nested loop join.
For each row in the outer table, the algorithm scans [1] rows in the inner table to find matching join keys.
Nested loop join compares each row of the outer table with all rows of the inner table to find matches.
Complete the code to describe the first step of a sort-merge join.
The first step in a sort-merge join is to [1] both input tables on the join key.
Sort-merge join requires both tables to be sorted on the join key before merging.
Fix the error in the description of a hash join.
In a hash join, the algorithm builds a hash table on the [1] table and probes it with rows from the [2] table.
Hash join builds a hash table on the smaller table to optimize memory usage and probes it with rows from the other table.
Fill both blanks to complete the description of sort-merge join conditions.
Sort-merge join requires both tables to be [1] on the join key and then [2] through them to find matching rows.
Sort-merge join first sorts both tables and then scans through them to find matching rows.
Fill all three blanks to complete the hash join process description.
The hash join algorithm first [1] the smaller table into a hash table, then [2] the larger table, and finally [3] matching rows using the hash table.
Hash join builds a hash table from the smaller table, scans the larger table, and probes the hash table to find matching rows.