converting single column to single row
Posted: Tue Aug 05, 2008 10:04 pm
Hi all,
I want to pass the two records present in single column into single row. here is the sample data
input table
field0 field1 field2
101 1 1000
101 2 2000
output table
field0 field1_1 field2_2
101 1000 2000
I tried for in column derivation as....
If field1=1 then field2 else 0 for field1_1
If field1=2 then field2 else 0 for field2_2
but it works for field1=1 since field0 is the key column.
your suggestions will help me to overcome this
thanks in advance
I want to pass the two records present in single column into single row. here is the sample data
input table
field0 field1 field2
101 1 1000
101 2 2000
output table
field0 field1_1 field2_2
101 1000 2000
I tried for in column derivation as....
If field1=1 then field2 else 0 for field1_1
If field1=2 then field2 else 0 for field2_2
but it works for field1=1 since field0 is the key column.
your suggestions will help me to overcome this
thanks in advance