Академический Документы
Профессиональный Документы
Культура Документы
For implementing SCD type-2, we need to have lookup on the target table. We need to check
whether that data is present in the lookup, If not we need to insert the data in one Target
instance. If the data is found, then we need to lookup whether we are having the same data
what we have received in sq. If yes, leave the data in the target untouched, Else, insert the data
and change the version number to +1.
Hi All,
I m new to this SAP DS.As per the below link i m trying to achieve SCD type 2 for
my DB Teradata.
https://wiki.sdn.sap.com/wiki/display/BOBJ/Slow%20Changing%20Dimension
%20Type%202
key_id,cust_id,cust_name,city,valid_from,valid_to,curr_ind
1,2001,Garnier soft serv,San Jose,1/17/2006,12/31/9999,Y
Source Tab ---> Query --> TC --> HP --> KG --> Target Tab
But when i m trying to run the job it's stuck due to to some reason.And i have followed
all the steps mentioned in the above link.But when i have tried in the oracle DB it's
running fine but not in teradata.
Thanks
SP
Back to top
Hi Werner,
Job design --- SRcC tab -->Query --> TC --> HP --> KG --> Target Tab
In Table comparison I have mentioned cust_id as "Input Primary Key columns" and
cust_nm,city,valid_from defined as "Compare columns".And comparison method is
"Row-by-Row select".In HP the same list of columns mentioned for compare
columns.
How to analyze whether to use scd1 or scd2 from the business requirement? Give a
example.
How to implement scd1 using mapping parameters?
If the business requires only the current data for a dimension, SCD1 should be employed.
Eg., Currency dimension - only the latest information is sufficient.
However, if the business requires historical data for the dimention, SCD2 should be employed.
Eg., Customer dimension, as the information about current and past customers is required.
For eg –
The Dept_name “Accounts” will be over written with the new Dept_name “Finance”
Type 2 SCD tracks the historical data by creating multiple records in the dimensional tables
with separate keys.
For Eg -
Or the historical value stored by creating a separate row in the following manner –
Type 3 SCD tracks the changes by creating the separate columns. Where the original table
structure in Type 1 and Type 2 was very similar, Type 3 will add additional columns to the
tables.
Hope this will help to some extent...
And regarding the usage of Mapping parameters in SCD Type 1 need to get clarified... soon will
be back with the info..
Example:
The address of a custumer may change in rare case. The address of a custumer
never changes frequently.