Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are active and passive transformations?

1033


How are indexes created after completing the load process?

1561


What does reusable transformation mean?

1083


What is informatica powercenter repository?

1147


How do you load only null records into target?

1154


Give one example for each of conditional aggregation, non-aggregate expression, and nested aggregation?

1208


Difference between Data and Index Caches?

1101


Which transformation is needed while using the Cobol sources as source definitions?

1132


How union transformation is used?

968


Different sorts of metadata that stores in the storage facility?

962


How can you validate all mappings in the repository simultaneously?

1303


Write the different tools in the workflow manager?

1004


What is the use of transformation?

955


What are mapplets? How is it different from a Reusable Transformation?

1039


What are the designer tools for creating transformations?

1055