Escolar Documentos
Profissional Documentos
Cultura Documentos
Center of Excellence
Data Warehousing
Wipro Technologies
îows to be joined must be on the same AMP.
Join plans
Product join.
Merge join
Nested join
eneral scenarios:
Join column is the PI of both the tables.
Steps
Identify the smaller table.
Put the qualifying rows from one or both table into spool.
Move the spool rows to the AMPs based on join column
hash (if required).
Sort the spool rows by join column hash value (if necessary).
Compare those rows with matching join column hash values.
x
# #$%
!"
#
!" &
& &
&' '
& # '
& & #
& #
& #
&
@
5 5
# # # # #$$
()* (+)* ()*
&& &&
&&
4&& 2&&
&&& ' &&
&&& # &&
&&& &&
&&& &&
@
&&,&&
&&&& &&-,&& &&.&&
2&&3/&& .&&1 && /&&/&& ,&&0&&
&&&' && &&&# && &&& && 4&&2&&
&&&&&
&&)
&& && &&
2&& .&&- /&&
,&&
î
No distribution needed.
No sorting needed.
&&,&&
&&&& &&-,&& &&.&&
2&&3/&& .&&1 && /&&/&& ,&&0&&
&&&' && &&&# && &&& && 4&&2&&
&&&&&
&&)
&& && &&
2&& .&&- /&&
,&&
î
Distributing and sorting one of the table on
join column row hash.
&&,&&
&&&& &&-,&& &&.&&
2&&3/&& .&&1 && /&&/&& ,&&0&&
&&&' && &&&# && &&& && 4&&2&&
&&&&&
&&)
&& && &&
2&& .&&- /&&
,&&
&&)
&& && &&
2&& .&&- /&&
,&&
&&&' &&
&& && &&& && ,&&0&&
&&,&&
&&&&& /&&/&& &&.&&
2&&3/&& .&&1 && &&-,&& 4&&2&&
&&&# &&
&&) &&) &&) &&)
&& && && &&
&& && && &&
&&
&&
&&
&&
/&&
/&&
/&&
/&&
,&& ,&& ,&& ,&&
.&&- .&&- .&&- .&&-
2&& 2&& 2&& 2&&
î
Duplicate the smaller table on every AMP.