Converting Rows to columns
I have Relational source like his.
JAN FEB MAR APR
100 200 300 400
500 600 700 800
900 100 200 300

I need to convert these rows into columns to the targe.

MONTH TOTAL
JAN 1500
FEB 900
MAR 1200
APR 1500

Please experts help me

Answer Posted / sehajshangari1235

TAKE A NORMALIZER TRANSFORMATION.
CREATE A NORMALIZED PORT NAMED "DETAIL" WITH OCCURENCE 4
.CONNECT INPUT PORTS FROM SOURCE QUALIFIER TO EACH DETAIL
PORT IN NORMALIZER.

NEXT TAKE AN EXPRESSION TRANSFORMATION.IN THAT CREATE AN
OUTPUT PORT NAMED MONTH.AN IN EXPRESSION EDITER WRITE THE
LOGIC AS

DECODE(GCID_DETAIL,1,'JAN',DECODE(GCID_DETAIL,2,'FEB',DECODE(
GCID_DETAIL,3,'MARCH','APRIL')))
CONNECT THIS OUTPUT PORT TO TARGET TABLE PORT!!!




SEHAJ
7204719446

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the way to execute pl/sql script using informatica mapping?

966


What are the basic requirements to join two sources in a source qualifier transformation using default join?

617


What is the difference between writing a joiner query in ANSI style and THETA style?

1925


suppose in my source flatfile i have 10000 records in that some of master table records missed table records missed then what will u do

1735


tell me about your project functionality

1870






What is expression transformation?

637


How to generate sequence numbers using expression transformation?

647


What are the types of schemas we have in data warehouse and what are the difference between them?

527


Write the advantages of partitioning a session?

752


Describe expression transformation?

636


What does reusable transformation mean?

676


What are active transformations.

1191


Make a note of the quantity vaults made in informatica?

561


list out all the transformations which use cache?

691


What is a sequence generator transformation?

579