write a sql query following source?
subject mark
maths 30
science 20
social 80

requird output
maths science social
30 20 80

Answer Posted / brij

select
decode(subject,'maths',mark) maths
,decode(subject,'science',mark) science
,decode(subject,'social',mark) social
from <<table>>

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If i have source as flat file. how can i store the header and trilor into one target and data into one more target. |------>target1(header+trailor) source------ |------>target2(data) can any one please help me

1558


Explain the use of aggregator cache file?

678


Explain what are the different types of transformation available in informatica. And what are the mostly used ones among them?

609


can you please explain me pre session and post session options?

6383


Define filter transformation?

626






can we override a native sql query within informatica? Where do we do it?

626


Explain the etl program with few examples.

548


The question was on time stamp. what is the difference between HH and HH24 when to use when.

1562


SOURCE DATA IS DISPLAY IN THIS FORMATE IN TARGET . WHAT BUSINESS LOGIC WE CAN APPLY. source table target table ------------ ------------ c1 c2 c3 c1 c2 c3 -- -- -- -- -- -- 1 A J 1 2 B K 2 A 3 C L 3 B J 4 D M 4 C K 5 E N 5 E L F M N

1690


How to generate sequence numbers?

618


What is a predefined event?

662


How you know when to use a static cache and dynamic cache in lookup transformation?

1341


What is the need of etl tools?

614


How do you update the records with or without using update strategy?

664


I have worked on Informatica 7.1.1. I want to know the answer for the below question. Target is not created initially.Then how to take the DDL script from the source and run the Mapping by creating the Target dynamically?Is it possible by SQL Transformation?

1466