Update SQL Query

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

chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then it should be working fine... right?
-craig

"You can never have too many knives" -- Logan Nine Fingers
pkomalla
Premium Member
Premium Member
Posts: 44
Joined: Tue Mar 21, 2006 6:18 pm

Post by pkomalla »

Try to divide the updates and inserts in the transformer itself. Use Oracle stages two one for update and one for insert if you have inserts.

In transformer write constraints saying if ename=",.." and dept=.. then go to update stage or insert stage.
sb_akarmarkar
Participant
Posts: 232
Joined: Fri Sep 30, 2005 4:52 am
Contact:

Post by sb_akarmarkar »

chulett wrote:Then it should be working fine... right? ...
Question is still there how to pass old DEPT and new DEPT to Update table where we have only one target table DEPT as in tarnsformer while mapping...

Thnaks,
Anupam
sb_akarmarkar
Participant
Posts: 232
Joined: Fri Sep 30, 2005 4:52 am
Contact:

Post by sb_akarmarkar »

Now problem is solved i passed value of old dept to DEPT and new dept to dummy DEPT and modified update statement...

Thanks all,

Anupam
Post Reply