Hi,
source data is
col1 values are 5,6,7
col2 are 3,2,1
col3 are 8,9,10
and i want to get target as
col1 5,6,7
col2 1,2,3
col3 8,9,10
how to do this one?

Answers were Sorted based on User's Feedback



Hi, source data is col1 values are 5,6,7 col2 are 3,2,1 col3 are 8,9,10 and i wa..

Answer / siva

Take col1 and col3 in pipeline with a sequece generator,
and sorted values of col 2 in another pipeline with
sequence generator. Join both pipelines by sequence values
and send it to target.
Eg: seq col1 col3
1 5 8
2 6 9
3 7 10
Seq Col2
1 1
2 2
3 3
after joining
col1 col2 col3
5 1 8
6 2 9
7 3 10

I think that resolves your problem.

Is This Answer Correct ?    4 Yes 0 No

Hi, source data is col1 values are 5,6,7 col2 are 3,2,1 col3 are 8,9,10 and i wa..

Answer / galandekapil

I think we can do this via declaring 3 variables say var1,
var2 and var3 in an expression transformationand say we
have 3 input columns col1, col2 and col3.
var1=max(col1, col2, col3)
var2=IIF(var1=col1 and col2>col3, col2,
else if var1=col1 and col3>col2, col3,
else if var1=col2 and col1>col3, col1,
else if var1=col2 and col3>col1, col3,
else col3
var3=min(col1, col2, col3)

Then assign var1 to target col1, var2 to target col2 and
var3 to target col3. I guess this way we can sort the date
in row.

Is This Answer Correct ?    2 Yes 0 No

Hi, source data is col1 values are 5,6,7 col2 are 3,2,1 col3 are 8,9,10 and i wa..

Answer / vasu

Benz
if we follow like that , we couldn't get the remains
column's data order,surely that will change.

if u get another ,let me know

Is This Answer Correct ?    0 Yes 0 No

Hi, source data is col1 values are 5,6,7 col2 are 3,2,1 col3 are 8,9,10 and i wa..

Answer / guest

Need to connect to the normalizer transformation and ther
put occurs in the normalizer properties

Is This Answer Correct ?    0 Yes 1 No

Hi, source data is col1 values are 5,6,7 col2 are 3,2,1 col3 are 8,9,10 and i wa..

Answer / ram

use sort for col2

Is This Answer Correct ?    4 Yes 6 No

Hi, source data is col1 values are 5,6,7 col2 are 3,2,1 col3 are 8,9,10 and i wa..

Answer / benz

order by clause

Select * from tablename orderby col2 asc;

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More Informatica Interview Questions

What all join we can perform in LOOKUP transformation?

0 Answers  


my source like dis 10,asd,2000 10,asd,2000 10,asd,2000 20,dsf,3000 20,dsf,3000 20,dsf,3000 like dis and my requirement is first record is inserted into first target and duplicates of first record is inserted into second target ...like dis way ...? how to achieve dis?

4 Answers   Mind Tree, Polaris,


How to display session logs based upon particular dates. If I want to display session logs for 1 week from a particular date how can I do it without using unix. ?

0 Answers   CTS,


What are the reusable transforamtions?

1 Answers  


Please explain in detail with example about 1.Confirmed Dimension. 2.Junk Dimension. 3.Degenerated Dimension. 4.Slowly changing Dimensions

3 Answers   Infotech,






List the transformation used for the following: (1) Heterogeneous Sources (2) Homogeneous Sources (3) Find the 5 highest paid employees within a dept. (4) Create a Summary table (5) Generate surrogate keys

1 Answers  


Can any body tell about the (UTC) unit test cases with the examples in informatica.

4 Answers  


Explain what is informatica metadata and where is it stored?

0 Answers  


Consider a Phone Log table as below. It records all phone numbers that we dial in a given day. SOURCE_PHONE_NUMBER DESTINATION_PHONE_NUMBER CALL_START_DATETIME 1234 4567 01/07/2011 10:00 1234 2345 01/07/2011 11:00 1234 3456 01/07/2011 12:00 1234 3456 01/07/2011 13:00 1234 4567 01/07/2011 15:00 1222 7890 01/07/2011 10:00 1222 7680 01/07/2011 12:00 1222 2345 01/07/2011 13:00 Please provide an SQL query to display the source_phone_number and a flag where the flag needs to be set to Y if first called number and last called number are the same and N if the first called number and last called number are different. Desired Output: Source Number Is_Match 1222 N 1234 Y

2 Answers   Amazon,


What is DTM process?

4 Answers  


How do u identify or filter out a 0 byte file available in a folder by using UNIX command?

1 Answers   Wipro,


How to join three sources using joiner?

0 Answers  


Categories