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
SELECT
CUST_ID,
DECODE(CUST_ID,'101',CUST_QUTY) AS CUST_QUTY1,
DECODE(CUST_ID,'102',CUST_QUTY) AS CUST_QUTY2,
DECODE(CUST_ID,'103',CUST_QUTY) AS CUST_QUTY3
FROM TABLE_NAME
GROUP BY CUST_ID;
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
project Steps,hits, Project level HArd things,Solved methods?
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
What are the steps needed to create a simple basic datastage job?
Differentiate between Symmetric Multiprocessing and Massive Parallel Processing?
Demonstrate experience in maintaining quality process standards?
A signal has a wavelength of 1 micro min in air.how far can the front of the wave travel during 1000periods?
describe the Steps to confiure a Qlogic switch
How to find value from a column in a dataset?
How many areas for files does datastage have?
options available in sequence job to run,validate?
What are the different type of jobs in datastage?
What are the various kinds of the hash file?
Which algorithm you used for your hashfile?
What is a merge?
disign the complex job in u r project?(they are aksing only complex job design and then data flow...)