Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a query following table

bookid language
1234 english
1234 french
1234 spanish
1235 english

i want the output are

bookid lang1 lang2 lang3
1234 english french spanish
1235 english null null

Answer Posted / tgin

SELECT BOOKID,DECODE(LANGUAGE,'ENGLISH') AS LANGUAGE1,
DECODE(LANGUAGE,'FRENCH') AS LANGUAGE2,
(LANGUAGE,'SPANISH') AS LANGUAGE3
FROM TABLE_NAME
GROUP BY BOOKID

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how lookup transformation is made active in new versions... When to use connected and when to use unconnected lookup and why? which is good for session performance. How to make lookup persistent and how to remove stale data from that lookup. how commit works - when we stop or abort data. Explain in both cases. What is factless fact table and have you ever used it in real time scenarios.

1642


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

1012


Sequence generator, when you move from develoment to production how will you reset

1940


What is the Rank index port in Rank transformation?

1012


What do think which one is the better joiner or look up?

1143


Can any one give me a real time example for FACT TABLE & DIMENSIONAL TABLE?

2053


Explain pmcmd command usage in informatica

1065


What is sq transformation?

1080


Explain is there any way to read the ms excel datas directly into informatica? Like is there any possibilities to take excel file as target?

1047


What does command task mean?

1063


What is the reusable transformation?

1006


Differentiate between sessions and batches?

963


What is the difference between Active and Passive transformation?

1081


Why update strategy and union transformations are active? Explain with examples.

1173


Can we create a node as a gateway node and the same node can be assigned to a grid?

1026