You are on page 1of 2

How to remove duplicate using informatica?

 We can take sorter tr and in properties give select distinct or, in SQ we can write a query or
select option SELECT DISTINCT, in agg tr by selecting all group by ports.

How to load first record to 1st target 2nd record to 2nd target?

 Take one source(AGENTS).


 Take 2 targets( AGENTS_1ST, AGENTS 2ND ) give columns SNO, generate and execute
 Take sequence generator.
 Take router to separate based on the conditions drag all from source
 Make two groups 1st table and 2nd table.
 Group conditions are 1ST (SEQTRANS.NEXTVAL=1)
 2ND SEQTRANS.NEXTVAL=2
 Change properties in the seq tr to
 To make the loop give END VALUE= 2 and check CYCLE
 Do not RESET.
 Send all from router to targets.. NEXTVALS TO SNO..
 FINISH MAPPING.

How to load last 3 records?

 Take SEQ TR assign, CONNECT TO RANK


 Take RANK TR give BOTTOM 3
 Send RANK TO TARGET all records NEXTVAL TO SNO
 FINSH MAPPING

How to load FIRST 5 records?

 Take SEQ TR assign, CONNECT TO RANK


 Take RANK TR give TOP 5
 Send RANK TO TARGET all records NEXTVAL TO SNO
 FINSH MAPPING

How to load every 4th record to target?

 Take source and target.


 Take filter and send everything from source to filter.
 Take SEQ TR drag NEXTVAL to FILTER TR.
 In the SEQ TR properties give
 Start value 1
 Incremental by 1
 End value 0
 Current value 1
 Check cycle and reset options
 Drag everything from source to target expect NEXTVAL.
 In filter condition NEXTVAL=4.
 SAVE and RUN.
How to load even and odd records?

Can achieve with router..

 Take source (AGENTS)


 Take 2 targets( AGENTS_ODD, AGENT_EVEN).
 Take router drag source to router.
 Take SEQ tr connect NEXTVAL to router.
 Create 2 groups in ROUTER…..EVEN AND ODD
 EVEN…….. MOD(NEXTVAL,2)=1
 ODD………MOD(NEXTVAL,2)=0
 Send router to 2 groups and connect nextval to SNO.
 SAVE and RUN.

You might also like