Scenario:
How to load first,last,remaining records into different targets when source is a flat file?
Solution:
SRC-->SQ-->EXP -->JNR-->RTR-->TGT1
SEQ--> -->TGT2
-->TGT3
if seq value and agg count out put equal that means that is last record so it has to go to target 3
the remaining all records has to pass to target 2.
select * from emp where rownum=1;
select * from (select * from (select empno,ename,sal,job,mgr,rownum from emp) order by rownum DESC) where rownum=1;
Comments
Post a Comment