Hi,
I am not yet implemented "SCD2". Can help some one how to Implement "SCD2" in DataStage Parallel Edition.
How to im plement the "SCD2" in DataStage Parallel
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Do you understand what "SCD2" is? The things that you need to do for dimension tables are to capture a before-image of what's current in the target table in a form you can lookup using the business key. As you process the new data you determine whether the business key exists or not in the target and, if it does, whether it has changed. If it is new, insert a new record with a new surrogate key. If it is changed, update the existing record such that it is marked non-current and insert a new current record. When loading the fact table, you also need to lookup the surrogate key using the business key; the surrogate key will be a foreign key in the fact table.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.