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

suppose we are using dynamic lookup cache and in lookup condition the record is succeeded but in target it is failed due to some reasons then what happened in the cache ?

6084


What are active transformations.

1188


 Informatica Checkpoints

2857


What is a rank transform?

676


Dimension Object created in Oracle can be imported in Designer Cubes contain measures

1936






What all are steps in up gradation of Informatica server?

622


What is a grid in Informatica?

610


What is deployment group?

686


How to use pmcmd utility command?

582


can we override a native sql query within informatica? Where do we do it? How do we do it?

597


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

609


Explain why we use partitioning the session in informatica?

613


can anybody send me some real time screenshots of mapping in informatica powercenter. i will be vary thankful to him. my e-mail id :- prakashkumar.kumhar@gmail.com

4310


what is $$$$?

1738


What are the limitations of joiner transformation?

654