Description of the illustration mergejoin.eps

t1, the outer table, has columns a, b and c. It contains the following data:

t2, the inner table, has columns a, b and c. It contains the following data:

x1, the sorted index for t1, has columns a, b and c. It contains the following data:

x2, the sorted index for t2, has columns a, b and c. It contains the following data:

The join condition is WHERE t1.a=t2.a.

The results table contains the following data: