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?
Answer Posted / 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 |
Post New Answer View All Answers
Write the unconnected lookup syntax and how to return more than one column.
Tell me can we override a native sql query within informatica? Where do we do it? How do we do it?
How to start a workflow using pmcmd command?
What is an expression transformation?
How many ways are there to do 'remove duplicate records in informatica'?
What is a surrogate key?
What are the static cache and dynamic cache in informatica?
What is domain in terms of informatica?
Did u used latest transformations of 8.6.0? for what?
What are the types of caches in lookup? Explain them.
Explain the etl program with few examples.
How to create Target definition for flat files?
Can any one give me a real time example for FACT TABLE & DIMENSIONAL TABLE?
How would you copy the content of one repository to another repository?
What are the components of the workflow manager?