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 is the hint? how to use it to reduce the query processing in program?
Can you generate sequence numbers without using the sequence generator transformation?
How can you define user defied event?
What is dimensional table?
What are the types of data warehouses?
Some flat files are there, out of these having some duplicate. How do you eliminate duplicate files while loading into targets?
What is the meaning of up gradation of repository?
permutations of mapplet
What are the challenges you have faced in your Project (DWH- ETL)? Explain with example?
Explain the different dimensions.
How do you load first and last records into target table? How many ways are there to do it? Explain through mapping flows.
What do you understand by term role-playing dimension?
Describe expression transformation?
can any one explain me what i have to tell about insurance project in interview,,,,when he asked to tell about ur project
Explain what are the different types of transformation available in informatica. And what are the mostly used ones among them?