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
Name the third party tools that can be used in datastage?
hi iam new to this tooliam cmpltied to know abt datastage so now iam in project tell me whole step by step what iam doing iwnt to go with exp so plz hlp me pals
What are the functionalities of link collector?
What are the steps required to kill the job in Datastage?
Hi, what is use of Macros,functions and Routines..? At what situation you are used. If you know the answer please explain it. Thanks.
State the difference between an operational datastage and a data warehouse?
Is it possible to implement parallelism in Mainframe Jobs ? If Yes how ? If no why ?
Explain the importance of surrogate key in data warehousing?
how to implement scd2 in datastage 7.5 with lookup stage
whom do you report?
Demonstrate experience in maintaining quality process standards?
How a routine is called in datastage job?
Difference between IBM DATA STAGE8.5 and DATA STAGE9.1 ?
i have a job with 3 possibiliies finish with ststus ok abbort warning how do you handle these 3 in job sequence? explain the situation where you have appiled scd in your project? chandu
What are the job parameters?