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
Answers were Sorted based on User's Feedback
Answer / 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 |
It wouldn't work many to one concept for Normalizer.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / gm
SQL:
select quarter, sales from table_name
group by quarter, sales;
Informatica:
Source-SQ-Exp-Normalizer Trans.-Tgt
In Normalizer Transformation we can do row into column.
| Is This Answer Correct ? | 4 Yes | 7 No |
In What Situations we can use MappingParameters ,Mapping Variables AND Session Parameters in REAL TIME.
Why can't we use few transformations in mapplet ? like xml and target defintions, seq etc ?
Can we write to_date(three arguments) ? Will it work ? Advance thanks
complex mapping ur project u r invlve can u explain and give real time example give me ?
what are the types of Data warehousing ?
How does the aggregator transformation handle null values?
When we are using Dynamic Cache,which options we will select in session level?
Separate from a database, an information bazaar, and an information stockroom?
In target table how to display the system time
surrogate keys usage in Oracle and Informatica?
5 Answers ITC Infotech, Oracle,
How to transform normalized data to denormalized form in informatica? Is there any logic or any transformations to achieve this?
Explain what transformation and how many are there in informatica?