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 / dilip ingole
using query
SELECT 'JAN' AS MONTHS,SUM(JAN) FROM CALADERQUERY
UNION
SELECT 'FEB' AS MONTHS,SUM(FEB) FROM CALADERQUERY
UNION
SELECT 'MAR' AS MONTHS,SUM(MAR) FROM CALADERQUERY
UNION
SELECT 'APR' AS MONTHS,SUM(APR) FROM CALADERQUERY;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the features of complex mapping?
Which means the first record should come as last record and last record should come as first record and load into the target file?
what is SDLC way of code development?
What are the components of workflow manager?
what is the Default Source Option For Update Strategy Transformation?
What is option by which we can run all the sessions in a batch simultaneously?
Explain constraint based loading in informatica
What is the Rank index port in Rank transformation?
What are the different versions of informatica?
What is the need of etl tools?
How many dimensions are there in informatica?
What is a stored procedure transformation?
What are the conditions needed to improve the performance of informatica aggregator transformation?
Could you explain what is enterprise data warehouse?
Can we create a node as a gateway node and the same node can be assigned to a grid?