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
What are the settings that you use to configure the joiner transformation?
Explain scd type 3 through mapping.
What are active transformations.
what are factless facts? And in which scenario will you use such kinds of fact tables.
How we can create indexes after completing the loan process?
What is the fact table?
What is Session and Batches?
Different sorts of metadata that stores in the storage facility?
What does update strategy mean, and what are the different option of it?
What is the way to execute pl/sql script using informatica mapping?
What is the commit type if you have a transaction control transformation in the mapping?
Dimension Object created in Oracle can be imported in Designer Cubes contain measures
In how many ways we can create ports?
Under what conditions selecting sorted input in aggregator will still not boost session performance?
What are the tuning techniques you applied during your last project