Home > Software > Data-Warehouse > Informatica
Interview Questions   Tutorials   Discussions   Programs   

Informatica - How we can get unique records into one target table and duplicate records into another target table?




1449
views
asked marvit September 20, 2014 08:05 AM  

How we can get unique records into one target table and duplicate records into another target table?


           

1 Answers



 
answered By vishnoiprem   0  
Records in Source Q :
col
1,1,2,3,3,4
 
 
Source-->SrcQualifier-->Aggregator(group
by this column and find count also)--> then use joiner (use
the column from Source qualifier and join the data from
Aggregator as source qualifier.col=aggregator.col) -->
Router (insert into t1 for count>1 and for count=1 insert
into t2). t1 is for duplicate records and it will contain
1,1,3,3 and t2 will have 2,4.
 
The records after agregator will look like this :
col   count
1     2
2     1
3     2 
4     1
 
Records after Joiner : source q.col=aggregator.col
col count
1   2
1   2
2   1
3   2
3   2
4   1
 
These records will flow in router and we define two groups;
one for count>1 (for duplicates record) and second for
count=1 ( for unique record)
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert