write sql query following table
amount year quarter
1000 2003 first
2000 2003 second
3000 2003 third
4000 2003 fourth
5000 2004 first
6000 2004 second
7000 2004 third
8000 2004 fourth
i want the output
year q1_amount q2_amount q3_amount q4_amount
2003 1000 2000 3000 4000
2004 5000 6000 7000 8000
can anybady help me to achieve the aboue result by using informatica.
thanks in advance.
Answer Posted / kamleshmishra291
SQL OVERRIDE :
SELECT * FROM TABLE_NAME PIVOT(MAX(AMOUNT) FOR QUARTER IN ('FIRST','SECOND','THIRD','FOURTH'));
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Scheduling properties,whats the default (sequential)
What is transformation?
How to start a workflow using pmcmd command?
what is the size of u r source(like file or table)?
Explain what are the different versions of informatica?
Explain pushdown optimization and types in informatica
What are mapplets?
r u done any partitions in ur project?
Explain lookup transformation in informatica
What is the difference between writing a joiner query in ANSI style and THETA style?
What is xml source qualifier transformation in informatica?
What do you mean by blocking transformation?
What is workflow manager?
Clarify the utilization of aggregator cache record?
How to improve the performance of a session using sorter transformation?