write a query row to column follwing source?
quarter sales
q1 5000
q1 9000
q1 7000
q1 6000
q2 5000
q2 4000
q2 3000
q2 1000
q3 4000
q3 3000
q3 1000
q3 2000
q4 5000
q4 400
i want the output?
q1 q2 q3 q4
sales
Answer Posted / ankit kansal
Hi All,
select sales,sum(q1),sum(q2),sum(q3),sum(q4)
from
select 'sales' as sales
,case when quarter='q1' then sales else 0 end case as q1
...q2
...q3
...q4
)temp group by sales;
http://deepinopensource.blogspot.in/
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Did u used latest transformations of 8.6.0? for what?
Where do we use mapping variables in informatica?
What is mapplet in informatica?
Debugger what are the modules, what are the options you can specify when using debugger, can you change the expression condition dynamically when the debugger is running.
What do you mean by filter transformation?
How to extract sap data using informatica?
What is the difference between Active and Passive transformation?
How do we call shell scripts from informatica?
can anyone explain me about retail domain project in informatica?
Clarify the utilization of aggregator cache record?
Explain the etl program with few examples.
How to update a particular record in target with out running whole workflow?
What are the different lookup cache(s)?
Explain informatica architecture - version 8 / 9
What is the commit type if you have a transaction control transformation in the mapping?