write s sql query following table some duplicate present i
want unique one column duplicate another column display?

name id
a 1
a 1
b 2
b 2
c 3
i want the required output like
unique duplicate
name id name id
a 1 a 1
b 2 b 2
c 3

Answer Posted / ram pothineni

1) In SQ.. override the default query as below..

SELECT NAME,ID,ROW_NUM()OVER(PARTITION BY NAME ORDER BY
NAME)RN FROM TABLE_NAME

2) In router create two groups

UniqueGroup - RN = 1
DuplicateGroup - RN > 1

3) Connect Respective group to respective targets...



-- Ram Pothineni

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you load first and last records into target table?

954


Explain what transformation and how many are there in informatica?

741


Which transformation should we use to normalise the COBOL and relational sources?

1010


Hi all , I am planning for informatica S - PowerCenter 8 Mapping Design certification. I have rewuired the dumps for the same. if anyone of you having the same pl. share it with me. This will be of great help. My contact is : sagardev7@gmail.com TIA , Sagar

2537


What is the Rank index port in Rank transformation?

879


What are the conditions needed to improve the performance of informatica aggregator transformation?

860


How to load a Dimension ? and how to load a fact table?

1179


What are the modules in Power Center

1468


How to create the list file having millions of flat files while indirect loading in informatica? In indirect file loading, suppose we have less no.of flat files then we can enter files names manually in list file creation. If millions of files are there, how can we enter the flat file names in list file?

1774


Performance tuning( what you did in performance tuning)

1752


EXL informatica Questions

1174


What is domain in terms of informatica?

804


Tell me about MD5 functions in informatica

728


Clarify the utilization of aggregator cache record?

815


Hello, Can you please send the admin and advanced mapping design sample questions to ns_sharmin@yahoo.com?

2116