suppose if we have dublicate records in a table temp n now
i want to pass unique values to t1 n dublicat values to t2
in single mapping using aggregator & router? how
Answer Posted / shalu
giving one example, lets say my table temp is having
following -
col1 col2
1 2
1 2
1 2
3 4
3 4
5 6
In the SQL Qualifier, override the query as
select col1,col2,count(1) total from temp group by col1,col2
which shows the output as
col1 col2 total
1 2 3
3 4 2
5 6 1
Now, use one router transformation where one condition is
where total >=1
and second condition where total>1
So first condition will return you all the unique records
1 2
3 4
5 6
and second condition will return you duplicate records
1 2
3 4
| Is This Answer Correct ? | 19 Yes | 5 No |
Post New Answer View All Answers
In what scenario we use to improve session performance by pushdown optimization?can any one give example?
While importing the relational source definition from the database, what are the metadata of source that will be imported?
How to create the source and target database connections in server manager?
What are the different types of olap? Give an example?
What is the cumulative sum and moving sum?
How do you load first and last records into target table? How many ways are there to do it? Explain through mapping flows.
Reusable transformation and shortcut differences
What are Dimensional table?
what are the deliverables?in your project?
How we can create indexes after completing the load process?
Where is metadata stored?
How to delete duplicate row using informatica?
What are the informatica performance improvement tips
suppose we are using dynamic lookup cache and in lookup condition the record is succeeded but in target it is failed due to some reasons then what happened in the cache ?
How can we create index after completion of load process?