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 is a stored procedure transformation?

1058


What is blocking transformation?

1152


What are the different components of powercenter?

1055


how to load rows into fact table in data warehouse

1194


Separate from a database, an information bazaar, and an information stockroom?

1091


Is stop and abort are same in informatica?

1005


What are the main features of Oracle 8i with context to datawarehouse?

2115


Why update strategy and union transformations are active?

1051


How many ways are there to do 'remove duplicate records in informatica'?

1020


what is Active lock explain

2807


What are the differences between source qualifier and joiner transformation?

1065


What is the difference between source qualifier transformations source filter to filter transformation?

1060


How to use procedural logic inside infromatica?

1249


What are the guidelines to be followed while using union transformation?

1146


explain abt ur project architecture?

2200