Performing Outer join in Server jobs

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
bobthebuilder
Participant
Posts: 17
Joined: Mon Aug 15, 2005 3:13 pm

Performing Outer join in Server jobs

Post by bobthebuilder »

Any suggestions in performing outer joins in Server jobs other than defining a user defined query

--Bob
Bala R
Participant
Posts: 66
Joined: Mon May 30, 2005 9:52 pm

Post by Bala R »

Reference lookups using OCI, ODBC or Hashfiles. Do a search for outer join.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Anything in the Table Name field becomes the FROM clause in the SELECT statement in Generated SQL.
You can quite happily put things like

Code: Select all

#Schema#.Employee T1 LEFT OUTER JOIN #Schema#.EmployeeDependent T2 ON T1.EmployeeID = T2.EmployeeID
into the Table Name field. If you use aliases like that, make sure that the Derivation column in the Columns grid uses the same aliases.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rleishman
Premium Member
Premium Member
Posts: 252
Joined: Mon Sep 19, 2005 10:28 pm
Location: Melbourne, Australia
Contact:

Post by rleishman »

The SQL Builder in 7.5.1A - despite its problems ( viewtopic.php?t=96324&highlight=) - does have a marked improvement in producing outer joins.
Ross Leishman
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Neglected to mention that the Merge stage performs any kind of key-based join between two text files.
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