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

Hi, I want to do Informatica Designer certification. Can anyone help me by providing the details on this. Thanks in advance. Regards, Arnab

1859


What do you understand by SOA of Informatica?

768


What is data transformation manager process?

837


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

1923


Name the different lookup cache(s)?

944


Define Pmrep command?

848


What is the difference between STOP and ABORT options in Workflow Monitor?

964


What are the different types of transformation available in informatica.

844


If informatica has its scheduler why using third party scheduler?

1033


What is resilience time?

853


Briefly define reusable transformation?

858


How do you update the records with or without using update strategy?

897


How do you load first and last records into target table? How many ways are there to do it? Explain through mapping flows.

906


What is the different lookup cache(s)?

832


whats the logic to load the lower level of granularity of data to fact table.

2053