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

What is a snowflake schema?

655


Explain lookup transformation in informatica

736


What are the tasks that source qualifier perform?

722


How to elaborate tracing level?

789


Hi, I saw one mapping implemented by my seniors . In Expression transformation they implemented following logic. That is iif(is_date(in_UC_DATINV,'YYYYMMDD'),to_date(in_UC_DATINV,'Y YYYMMDD'),'Inventory Date is either invalid or null') Inventory_Date is validated only for is_date() But not validated for notisnull() . But error says “ either invalid or null “ why? Whether is_date() also check for not isnull() ? or in this logic something is different ? Please answer me . Advance thanks

1504






Does an informatica transformation support only aggregate expressions?

699


How to handle decimal places while importing a flatfile into informatica?

810


What are the different types of transformation available in informatica.

725


How do you load unique records into one target table and duplicate records into a different target table?

828


Can we change Dynamic to Static or Persistent cache? If so what happens?

1811


Have you worked with/created Parameter file

1316


Which files are created during the session rums by informatics server?

800


In warehouses how many schemas are there?

676


What is lookup change?

699


What is deployment group?

774