|
Hi
Before closing this discussion thinking - this dude does not know what he is talking about - SCD1 Changes do not have history - let me explain.
We have a dimension that has a mix of SCD type 1 and SCD type 2 changes. Lets use a Client dimension as an example. One of the attributes, example Geographical location has been identified as Type 2 and this will create new records and expire old when
the Geographic location changes. Another attribute is Date of Birth which is type 1 - a clients date of birth does not change so why track history.
Over time Client with a business key of 'ABC' had 3 different Geographic locations and therefore has two expired records and one current one. Next we discover that the Date of Birth had always been incorrect and the new one is run in the ETL process. This
correctly updates the current record with the correct date of birth.
But now we want to update the 2 expired records as well - and we want to do it via the Dimension Merge SCD wizard.
Currently our Update SCD 1 leg does an update statement like:
Update DimClient Set DateOfBirth = ? WHERE ClientKey = ?
but for the history update this must be something like:
Update DimClient Set DateOfBirth = ? WHERE ClientCode = ? (i.e. business key in where clause will update all history and not just the individual row)
Anyone have any ideas of how to do this via the wizard. Can it be done.
Thanks
Trevor
|