Hi Asgar
thanks for your reply... it is working for the sample data but when id has multiple rows come under this condition then it is writing multiple rows where i need only latest row should be inserted in target table.
see the below sample data:-
WL_ID I_STRT_DT ACT_STRT_DT ACT_SRT_DT_TWO_DEC_OF I_FL_DT I_FL_DT_C_D I_FL_DT_TWO_DL_OF I_FL_DT_UN NA_FRM NA_TO
707 2012-07-06 2013-06-19 2013-06-19 2012-09-07 2013-08-21 2013-08-21 2013-09-08 2012-09-06 2012-09-23
707 2012-07-06 2013-06-19 2013-06-19 2012-09-07 2013-08-21 2013-08-21 2013-12-19 2012-09-24 2013-01-21
707 2012-07-06 2013-06-19 2013-06-19 2012-09-07 2013-08-21 2013-08-21 2013-09-10 2013-01-22 2013-02-10
707 2012-07-06 2013-06-19 2013-06-19 2012-09-07 2013-08-21 2013-08-21 2013-10-21 2013-04-01 2013-05-31
can you tell me how to attach file..
Regards