UNION and FULL 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
DeepakCorning
Premium Member
Premium Member
Posts: 503
Joined: Wed Jun 29, 2005 8:14 am

UNION and FULL outer join

Post by DeepakCorning »

I want to confirm from you guys , Is it possible to do full outer joins and UNIONS in DS without any problem? And I think the only way to do is to use User defined SQL right??
LogicDude
Participant
Posts: 22
Joined: Tue Aug 30, 2005 5:08 pm
Location: CA

Re: UNION and FULL outer join

Post by LogicDude »

DeepakCorning wrote:I want to confirm from you guys , Is it possible to do full outer joins and UNIONS in DS without any problem? And I think the only way to do is to use User defined SQL right??
Yes. I have done that in User Defined SQL with out any problem.
Raj
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

You can achieve the same effect with a series of hash files and passes thru the data. But it would not be the elegant solution. If a UNION is what you desire, that is a database action best suited to be done in a database. a UNION ALL can be achieved by simply concatenating like structured text files together. A full outer join can be achieved thru a similar concatenation of like structured files followed by a merging operation using something like the Aggregator stage to group by a the merging key fields and MAX(xxx) operating the remaining fields.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
rleishman
Premium Member
Premium Member
Posts: 252
Joined: Mon Sep 19, 2005 10:28 pm
Location: Melbourne, Australia
Contact:

Post by rleishman »

Like kcbland sez about UNION ALL - you can do it by concatenating text files. A nice way of doing this with DS is to have each of your separate SQLs feeding into a Link Collector stage.
hari_pulakanam
Participant
Posts: 2
Joined: Tue Sep 13, 2005 11:15 pm

Post by hari_pulakanam »

Last edited by hari_pulakanam on Tue Sep 20, 2005 4:59 am, edited 4 times in total.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

These (Funnel and Remove Duplicates) are parallel stage types, not available in server jobs.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumar_j
Participant
Posts: 45
Joined: Mon Nov 28, 2005 2:43 am

Post by kumar_j »

u can do this by using with merge stage( in that there r so many options to do the join options )
complete set is for full outer join
just confirm
Post Reply