hi all, i want to update the old record in scd type 2 history using proc sql and how can i do it ? below is the table screen shot :- select PARTY_KEY,PARTY_number,CHANGE_END_DATE,CHANGE_begin_DATE,SOL_id from AMLCORE.fsc_party_dim_solnull where party_number='00077886' ; Output :- PARTY_KEY PARTY_NUMBER CHANGE_END_DATE CHANGE_BEGIN_DATE SOL_ID 14625 00077886 01/01/5999 00:00:00 01/16/2019 00:00:00 NULL 1267882 00077886 01/16/2019 00:00:00 02/13/2014 00:00:00 012 I want to update the SOL_ID from old record to new record .Please help me . i have tried to run below query but it is failing :- update AMLCORE.fsc_party_dim_solnull new set sol_id= (select sol_id from AMLCORE.fsc_party_dim_solnull old where old.party_number=new.party_number and old.segment_id=new.segment_id and CHANGE_END_DATE<>'01-jan-5999' ) where CHANGE_END_DATE='01-jan-5999' and sol_id is null and CHANGE_BEGIN_DATE >'01-jan-2019' ;
... View more