Initial date of effective date column for SCD 2 implementation
3 posters
Page 1 of 1
Initial date of effective date column for SCD 2 implementation
Hi guys,
Assume that I have a CUSTOMER table. And also in the OLTP system I have createdDate field in the customer table which specifies the creation of the customer.
In the first initial loading to the CUSTOMER table in DW, which value should I set to the EFFECTIVE_DATE column for the CUSTOMER dimension?
. CreateDate or SystemTimestamp?
Assume that I have a CUSTOMER table. And also in the OLTP system I have createdDate field in the customer table which specifies the creation of the customer.
In the first initial loading to the CUSTOMER table in DW, which value should I set to the EFFECTIVE_DATE column for the CUSTOMER dimension?
. CreateDate or SystemTimestamp?
ozisamur- Posts : 30
Join date : 2014-10-27
Re: Initial date of effective date column for SCD 2 implementation
Both. If you have a source that provides a business timestamp as to when a change occurred, you should capture it. You should also capture the system timestamp when the row was created/updated in the DW itself. This gives you the ability to view data using two different points of view… when the business knew and when it became known in the DW.
Re: Initial date of effective date column for SCD 2 implementation
Aside capturing both, I would set the creation timestamp as the first effective date.
Using the load timestamp could render you unable to find an effective SCD row because the first instance of your customer became effective after the first occurrence in the fact table (if using source system timestamps to resolve the surrogate key during ETL).
Using the load timestamp could render you unable to find an effective SCD row because the first instance of your customer became effective after the first occurrence in the fact table (if using source system timestamps to resolve the surrogate key during ETL).
Dr. Warehouse- Posts : 5
Join date : 2014-10-28
Similar topics
» scd2 effective date, end date data type
» Loading dimension when source already has effective to and from dates
» can i use other two effective dates column in SCD2
» Effective and Expiry date for Dimension Default Row
» Slow changing fact data with an effective date
» Loading dimension when source already has effective to and from dates
» can i use other two effective dates column in SCD2
» Effective and Expiry date for Dimension Default Row
» Slow changing fact data with an effective date
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum