How to extract original records at one target & Duplicate
records at one target?

Answer Posted / sks

Hi,
If I understand your question correctly, then it is like-
How to send original (distinct) records to one target
(let's say TA) and duplicates to another target (let's say
TB).
It can simply be done as follows -
In your mapping, take the source table containing whole
records (duplicates as well). Now, take 2 source qualifier
(SQ) transformations. The first SQ should
contain 'Distinct' sql query (hope you know that) and the
output ports should go to TA table.
The second SQ should contain the following sql stmt (which
filters only the duplicate records) -
-------------------------------------------
SELECT empno, ename, job, mgr, hiredate, sal, comm, deptno
FROM (SELECT empno, ename, job, mgr, hiredate, sal, comm,
deptno, ROW_NUMBER() OVER (PARTITION BY empno ORDER BY
EMPNO) rn FROM s_assign_1_emp)
WHERE rn > 1
-------------------------------------------
I am using emp table example (hope you can understand it).
Now, the output ports of the seecond SQ should go to TB
table.
This is the simplest way of doing it. Hope it will help.

If you feel any issue, please let me know at
shrikant_rps@yahoo.com

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

3.how will u get information about bugs how will u rectify the bugs in realtime whch tool we are using to rectify the bugs

1845


Explain direct and indirect flat file loading (source file type) - informatica

953


I need the output file in the below format using Informatica. __0946684800__ 6 1 3 1 5 1 6 1 10 1 6 10 Pos State Time Split AgentID Reason Spaces Code in Code Spare state ______ ___ _____ ______ __________ ______ 1234 14 0 4321 3103 abcd 4321 15 5 123452 3150 Can someone help please?? We need the data in space-delimited, fixed ASCII format .

1578


How can repository reports be accessed without sql or other transformations?

828


where to store informatica rejected data?

766






Write the advantages of partitioning a session?

853


Differentiate between a repository server and a powerhouse?

670


Explain what is informatica metadata and where is it stored?

690


What is the format of informatica objects in a repository? What are the databases that informatica can connect to windows?

795


COM components can be used in Informatica

1982


How does a rank transform differ from aggregator transform functions max and min?

787


what is Active lock explain

2452


Target increases every day even though no new record was inserted

1221


What is exclusive and normal mode for repository services?

794


What is a filter transformation?

672