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
What are the some differences between 7.x and 8.x version of datastage?
What is difference between server jobs & parallel jobs?
What are the functionalities of link partitioner and link collector?
WAT TYPE OF PL/SQL QUERRYS USED IN DATASTAGE
AGGREGATOR default datatype
Difference between data warehousing and olap?
How a source file is populated?
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 is the difference between datastage and datastage tx?
Is it possible to query a hash file?
1.new record it will insert but changes of natural key is not present in taget i want to update (here key is composite natural key )can any one help this to explan how to do
Notification Activity
what is use of SDR function?
Have you used Unstructured data?
What are sequencers?