Deleting records

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

rafidwh
Participant
Posts: 179
Joined: Mon Oct 10, 2005 11:30 pm

Post by rafidwh »

I need only to delete matching columns
sb_akarmarkar
Participant
Posts: 232
Joined: Fri Sep 30, 2005 4:52 am
Contact:

Post by sb_akarmarkar »

rafidwh wrote:I need only to delete matching columns

It will delete matched row as you can see in sql view ...

Why dont you try in test enviroment....

Thanks,
Anupam
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Use the update action "replace existing rows completly". Define all the keys properly as it supplies that key as the where predicate for the delete. Read into that update action, or as Anupam mentioned, look at the sql.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

I have no option to try now, but may I know what is the interesting SQL generated? Where my guess goes like, first datastage tries to insert the row and due to constraints it fails, and later tring to delete the row, and so deleting the left out table row.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply