Outer Join

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
das_nirmalya
Participant
Posts: 59
Joined: Thu Mar 20, 2008 12:11 am

Outer Join

Post by das_nirmalya »

Want to implement SCD Type II in Server Version, and due to that i want to do Outer join what is the process.
nsd
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Depends on the 'where'. In the database? SQL. Inside the job? Reference lookups are by definition an outer join. Would need more details to provide more help.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Write out your processing specification (what is to happen in all cases) in English. You will find that this guides your thoughts.

For example, the generic Type 2 SCD needs to make two choices. Therefore there are two IF tests in the following pseudo code.

Code: Select all

If (row exists in target table)
Then
   If (change detected in appropriate columns(s)
   Then
      generate new SK value
      insert new row
      mark existing row in target as no longer current
   End
End
Else
   generate new SK value
   insert new row
End
I don't see a need for an "outer join" anywhere in that algorithm, except that a reference lookup is inherently an outer join.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply