Page 1 of 1

full outer join

Posted: Thu Jun 24, 2010 5:36 am
by mystuff
I am slightly puzzled with the datastage full outer join. I have Key fields and values. the full outer join drops off common fiels (other than the key fields , or join fields).

Can anyone tell me on what basis it drops the records.

Shouldn't it be the other way i.e. dropping common key fields and retaining other fields from both inputs.

Posted: Thu Jun 24, 2010 6:56 am
by ArndW
The full outer join will combine table contents, never drop rows. See http://en.wikipedia.org/wiki/Join_(SQL)#Full_outer_join for a good description of the join functionality.

Posted: Thu Jun 24, 2010 4:38 pm
by ray.wurlod
It drops common key fields because they are identically valued and identically named. You can avoid this by using different naming conventions on the two inputs. A Copy stage is the most efficient stage for simply renaming columns.