cust id,cust quty like 1,101;1,102;1,103 i want output like
cust id,cust quty 1 101,102,103 in oracle please write a
query in oracle
Answer Posted / subhash
PIVOT finction available from ORCLE 11g Onwards:
SELECT *
FROM (SELECT customer_id, customer_quantity
FROM pivot_test)
PIVOT (customer_quantity FOR (customer_quantity
) IN (101, 102, 103))
ORDER BY customer_id;
Output:
1 101 102 103
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Have you have ever worked in unix environment and why it is useful in datastage?
Distinguish between informatica & datastage. Which one would you choose and why?
Difference between ‘validated ok’ and ‘compiled’ in data stage?
Define orabulk and bcp stages?
file having these input and we have to get 3 output using same job Input 1 1 1 2 3 4 4 4 o/p1 o/p2 o/p3 1 1 2 2 1 3 3 1 4 4 4
How do you start developing a datastage project?
What are sequencers?
What are the stages in datastage?
What is a merge in datastage?
how to connect source to db?generally what r stages u used? how to find the data is having delimiter format?
What are the different options associated with dsjob command?
disign the complex job in u r project?(they are aksing only complex job design and then data flow...)
Hi, what is use of Macros,functions and Routines..? At what situation you are used. If you know the answer please explain it. Thanks.
What are data elements?
what are .ctl(control files) files ? how the dataset stage have better performance by this files?