Page 1 of 1

Capture Record Insert Date and Record Update Date in SCD Sta

Posted: Sat Oct 18, 2014 1:57 pm
by collabxchange
Hi,
I am trying to load a Dimension table which has a mixture of Type 1 and Type 2 columns in it. The data population is working fine as expected when I use the SCD stage. But I am wondering if there is a way to populate Record_Insert_Date and Record_Update_Date in this table based on if a record is inserted(type 2) or updated(type 1).

I could use the Current_Indicator = 'Y' column to populate the Rec_Ins_dt for new records based on Type 2. But how can I update the Rec_Upd_Dt column for Type 1 cols?

Posted: Sat Oct 18, 2014 2:41 pm
by ray.wurlod
Use a Column Generator stage between the SCD stage and the stage that performs the update.

Posted: Sat Oct 18, 2014 2:48 pm
by collabxchange
I could but how can it help me identify those records which were updated with type 1?