write sql query following source table
jan feb mar apr
100 200 300 400
500 600 700 800
900 100 200 300
i want the output format like
month total
jan 1500
feb 900
mar 1200
apr 1500
Answers were Sorted based on User's Feedback
Hi, Using UNION ALL ,You can achieve it, here is Your Query
SELECT 'JAN' AS MONTH, SUM(JAN) AS TOTAL FROM SRC_MONTHS
UNION ALL
SELECT 'FEB' AS MONTH, SUM(FEB) AS TOTAL FROM SRC_MONTHS
UNION ALL
SELECT 'MAR' AS MONTH, SUM(MAR) AS TOTAL FROM SRC_MONTHS
UNION ALL
SELECT 'APR' AS MONTH, SUM(APR) AS TOTAL FROM SRC_MONTHS
Thanks
Kalyan Sankuthula
| Is This Answer Correct ? | 23 Yes | 0 No |
Answer / triveni
i have one doubt.how to convert source to columns using sourcequalifier. how many columns target we have take.
how to connect source to target
source has 4 columns
target has 2 columns
| Is This Answer Correct ? | 0 Yes | 0 No |
Why should we use star schema in datawarehouse design?
what is the logic will you implement to laod the data in to one factv from 'n' number of dimension?
How to go to the older version for a mapping?
What is data quality? How can a data quality solution be implemented into my informatica transformations, even internationally?
What is update override?
what is SDLC way of code development?
What is mapplet in informatica?
How to read data from flat file source if the data is in paragraph format?
Difference between STOP & ABORT in Informatica.
3 Answers Accenture, Wells Fargo,
what is semi-additive fact?where did u used?
What is the meaning of decode in informatica?
Can you create a flatfile target