write a query following source
region sales
1 1000
2 2000
i want the output ?please give solution
1 2
1000 2000

Answers were Sorted based on User's Feedback



write a query following source region sales 1 1000 2 2000 i want the output ?please g..

Answer / amedela chandra sekhar

BY USING NORMALIZER T/R WE CAN ACHIEVE THIS SCENARIO.








I hope i have given right solution.

Is This Answer Correct ?    7 Yes 5 No

write a query following source region sales 1 1000 2 2000 i want the output ?please g..

Answer / ankit kansal

Hi All,
As Question says Write a sequel query..


select sum(1),sum(2) from (
select case when region=1 then salary else 0 end as 1,
case when region=2 then salary else 0 end as 2
from table_name )test;

http://deepinopensource.blogspot.com/

Is This Answer Correct ?    1 Yes 0 No

write a query following source region sales 1 1000 2 2000 i want the output ?please g..

Answer / santosh kumar sarangi

Its not possible to create a table with number as column name.

Is This Answer Correct ?    0 Yes 0 No

write a query following source region sales 1 1000 2 2000 i want the output ?please g..

Answer / kamleshmishra291

SELECT * FROM TABLE_NAME PIVOT( MAX(SALES) FOR REGION IN (1,2));

Is This Answer Correct ?    0 Yes 0 No

write a query following source region sales 1 1000 2 2000 i want the output ?please g..

Answer / lakshman

HEY VIKRAM why do you post
answer when you dont know answer.


NORMALIZED T/R CAN CONVERT COLUMNS DATA TO ROWS DATA

Is This Answer Correct ?    0 Yes 0 No

write a query following source region sales 1 1000 2 2000 i want the output ?please g..

Answer / ravi

select * from table_name pivot(sum(sales) for region in(1,2));

Is This Answer Correct ?    0 Yes 0 No

write a query following source region sales 1 1000 2 2000 i want the output ?please g..

Answer / lchenchureddy

use Normalized transformation in the mapping.we get result.








Is This Answer Correct ?    2 Yes 4 No

write a query following source region sales 1 1000 2 2000 i want the output ?please g..

Answer / vikram

Hey are you guys not informatica resource.. why do you post
answer when you dont know answer.

I have seen this question on many pages and ans give as
Normalizer.

Guys: Correct answer is to use Aggregator..

Normalize : converts rows to column
Agg : Can convert columns to row

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More Informatica Interview Questions

how to duplicates from expression transformation without using sorter before that

1 Answers  


what are the types of facts with Examples?

3 Answers  


Two relational tables are connected to SQ Trans,what are the possible errors it will be thrown?

2 Answers  


Can we use Union Transformation for Heterogeneous sources? i.e; 3 sources, 1 from Oracle, 2nd from Informix, 3rd from Sql Server with same metadata?

3 Answers   TCS,


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.

5 Answers  






What is the difference between warehouse key and surrogate key?

1 Answers   Accenture,


If informatica has its scheduler why using third party scheduler?

0 Answers  


what is the difference between lookupoveride and joiner?

3 Answers  


What is confirmed dimension and fact?

7 Answers  


can every transfomation reusable?how?

2 Answers   Wipro,


how to run workflow in unix?

5 Answers   Colgate, HP, Tech Mahindra,


How to use procedural logic inside infromatica? If yes how, if now how can we use external procedural logic in informatica?

0 Answers  


Categories