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 / chandan023

1.Sort the data 
2.Expression transformation
   a)create a variable1(integer) and var2(string)
   b) var2 = concatenate all fields
   b)  set the value of the variable to 1 if (concat all fields are = var2)
   c) create a o/p port = var2
-- output of the expression t/f will be like
   NAME ID NEW_COL
   a  1 0
   a  1 1
   b  1 0
   b  1 1
   c  1 0
 3. Use a router transformation and route the data based on the new thirt column.

Happy ETLing :)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In warehouses how many schemas are there?

1068


Write the program through which the records can be updated?

998


Can we create multiple integration service on single repository?

1180


what is Active lock explain

2788


What are the new features of informatica 9.x developer?

965


Can anyone tell me the new features in Informatica 9 Version?

2117


What is the need of etl tools?

1110


Explain incremental aggregation in informatica

1115


What is meant by active and passive transformation?

1119


How is Source Side push down optimization different to just providing a SQL override in Source qualifier transformation.

1771


Explain how to import oracle sequence into informatica?

1004


How can we use batches?

1020


what is the complex transformation you used in informatica

2585


is there any way to read the ms excel datas directly into informatica?like is there any possibilities to take excel file as target?

1190


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

1152