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

Tell me about Propagate functions in informatica

524


scenario where i can use only concurrent execution of workflow.

2546


What do you understand by term role-playing dimension?

576


What is target designer and target load order?

657


can i any one explain me realtime healthcare project explanation..for interview .iam new to informatica .thanks in advance.

3324






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?

1464


How to do unit testing in informatica? How to load data in informatica ?

653


What is a filter transformation?

568


What is Index Caches size?

625


wat are deployement groups in informatica, how it will be used for developers

1257


How to create different types of slowly changing dimensions (SCD) in informatica using the mapping wizard?

627


what is SDLC way of code development?

1561


Differentiate between sessions and batches?

574


In informatics server which files are created during the session rums?

639


How can you validate all mappings in the repository simultaneously?

758