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...

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


Please Help Members By Posting Answers For Below Questions

Is it possible to implement parallelism in Mainframe Jobs ? If Yes how ? If no why ?

2231


What is the command line function to import and export the ds jobs?

1126


How many areas for files does datastage have?

1132


Can you implement SCD2 using join, transformer and funnel stage?

1529


Is it possible to query a hash file?

1985


Differentiate between Symmetric Multiprocessing and Massive Parallel Processing?

1191


Can you explain engine tier in information server?

1106


What are the different options associated with dsjob command?

1412


Notification Activity

1387


Highlight the main features of datastage?

1144


What is aggtorec restructure operator?

1427


Differentiate between datastage and informatica?

1166


What are stage variables, derivations and constants?

1203


im new to this tool im now at project plz tell me step by step process how to design plz help me i wnt to go with exp for job plz give me d proper design and explination

2151


explain about completely flow of sequencers technicaly,without using example??explain about lookup,nullhandling?

2466