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

i have a data in my source as a flat files what test i have to perform the next step can any body help to me

1700


what is index?how it can work in informatica

1584


Differences between version 7.x and 8.x.

1418


What are the different types of transformation available in informatica.

639


What are data-driven sessions?

713






What are the types of schemas we have in data warehouse and what are the difference between them?

523


Enlist the advantages of informatica.

632


have u done any performance tuning? how u ll do?

1857


What the difference is between a database, a data warehouse and a data mart?

597


Is it possible to use a client with different version than that of its Informatica server?

645


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

583


Hi, In source I have records like this No name address 10 manoj mum 10 manoj dilhi 20 kumar usa 20 kumar Tokyo I want records in target like shown below No name addr1 addr2 10 manoj mum dilhi 20 kumar usa Tokyo If it is reverse we can do this by using Normalizer transformation by setting occurance as 2. Somebody will say use denoralization technique. But as of my knowledge I couldn’t find any denormalization technique. Is there any concept like that? I tryid this seriously but I could find any idea to implement this. Can any one please help me ? Advance Thanks

6377


What are the steps involved in the migration from older version to newer version of Informatica Server?

1579


Explain constraint based loading in informatica

659


What are active and passive transformations?

652