Insert Update on Max Timestamp

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
dsrules
Premium Member
Premium Member
Posts: 76
Joined: Sun Nov 28, 2004 8:56 pm

Insert Update on Max Timestamp

Post by dsrules »

Hi,
I am trying to insert/update rows in a table. We have to maintain history , type 2 SCD. Whats the best way of implementing it. When ever I lookup against the table for update or inserts what is the best practise and how do i get the max timestamp row for a matching key when ever there is a update.
Thanks!!!!!!!!
Mack
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Best practice is to pre-load a lookup source (for example a hashed file) with the current values and to maintain this during the load process.

Search the forum for "Type 2", "lock for update" and "slowly changing dimension" for techniques.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dsrules
Premium Member
Premium Member
Posts: 76
Joined: Sun Nov 28, 2004 8:56 pm

Post by dsrules »

Geez..!!!!!, this forum already has so many posts and so much information that I found a couple of ways of doing this. You can only say OMG at the information available here
Post Reply