Union

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
pradeep_nov18
Participant
Posts: 92
Joined: Wed Mar 05, 2008 4:09 am
Location: chennai
Contact:

Union

Post by pradeep_nov18 »

Hi Experts,

How to perform Union operation for two tables.which stage shuold i use for this in datastage

Thanks in Advance.
pradeep.v
ahmedwaseem2000
Premium Member
Premium Member
Posts: 145
Joined: Fri Sep 15, 2006 12:23 pm

Post by ahmedwaseem2000 »

use funnel stage
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Funnel stage is really UNION ALL. If what you want is UNION use a Funnel stage followed by a Remove Duplicates stage (which implies a sort in there somewhere).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pradeep_nov18
Participant
Posts: 92
Joined: Wed Mar 05, 2008 4:09 am
Location: chennai
Contact:

Post by pradeep_nov18 »

ray.wurlod wrote:Funnel stage is really UNION ALL. If what you want is UNION use a Funnel stage followed by a Remove Duplicates stage (which implies a sort in there somewhere). ...
Ok Thanks ray
pradeep.v
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Best, of course, if the two tables are in the same database, is to perform the UNION in the SQL you use to extract rows from that database.
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