my source like dis

10,asd,2000
10,asd,2000
10,asd,2000
20,dsf,3000
20,dsf,3000
20,dsf,3000
like dis and my requirement is first record is inserted into
first target and duplicates of first record is inserted into
second target ...like dis way ...?

how to achieve dis?

Answers were Sorted based on User's Feedback



my source like dis 10,asd,2000 10,asd,2000 10,asd,2000 20,dsf,3000 20,dsf,3000 20,dsf,3000 ..

Answer / chandra

take 2 agg Trs after SQ and drag all the ports to both the
AGG Trs and enable group by for all ports for one AGG and
take one output port in second AGG ..,in that take count(no)
then take filter and write condition as count(no)>1


SQ---->AGG(enable all ports group by)-->Tar1
---->AGG(count(no))-->FIL(count(no)>1)--->Tar2

Is This Answer Correct ?    11 Yes 8 No

my source like dis 10,asd,2000 10,asd,2000 10,asd,2000 20,dsf,3000 20,dsf,3000 20,dsf,3000 ..

Answer / santosh kumar sarangi

1.first sort the data with sorter t/r as ID key column and
create below port in exp transformation
var2= var1
id
var1=id
rec_count=iff(var1=var2,rec_count+1,1)
2.Give all the port to router t/r and give the filer
condition as below
rec_count=1 then to first target
default to 2nd target

Let me know if any things is wrong.

Thanks & Regards
Santosh Kumar Sarangi

Is This Answer Correct ?    1 Yes 0 No

my source like dis 10,asd,2000 10,asd,2000 10,asd,2000 20,dsf,3000 20,dsf,3000 20,dsf,3000 ..

Answer / baswaraj

take a normalizer tr and set port vale 2 r 3 how much u
required and drag remaing ports as it is

Is This Answer Correct ?    0 Yes 1 No

my source like dis 10,asd,2000 10,asd,2000 10,asd,2000 20,dsf,3000 20,dsf,3000 20,dsf,3000 ..

Answer / ramakrishna

SQ---->AGGR(CREATE O/P PORT AS RCOUNT)WRITE EXPRESSION AS
COUNT(EMPNO)SELECT GROUPBY TO EMPNO
---->ROUTER(GRP1- TRUE)--- TRG1
(GRP2-RCOUNT>1)--TRG2

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More Informatica Interview Questions

what is materialized view?

2 Answers  


I want to run a workflow which consist of 3 sessions. But wat my question is. 1st session should run on DB1if the first session is successful then 2 session should run on db2 and 3rd session should run on DB3 envronments. i want 3 different wf logs. it shoul not override on one log?

1 Answers  


how can we load starting with 11th record of a table from source to target

6 Answers   IBM,


Can we get 1st record through Informatica(without sequence number).

0 Answers  


In aggregator transformation, I sort the data before aggregator and select sorted port but still I’m getting an error. What is that error?

2 Answers  






how do u get the first record from 50,000 records ?

10 Answers   TCS, UBS,


why do u use shortcuts in informatica.?

4 Answers   iFlex,


What is facttable granularity?

2 Answers  


i have source flat file like 1 a,1 b,1 c,2 a,2 b,2 c i want output as 1 a,b,c and 2 a,b,c ... how can achieve this

5 Answers   TCS,


Scheduling properties,whats the default (sequential)

0 Answers  


what is $$$$?

0 Answers   TCS,


What is session task and command task?

0 Answers  


Categories