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
What are orabulk and bcp stages?
why do u need the IOS upgradation in a FC switch
How to reverse the string using SQL?
I have a few records just I want to store data in to targets cycling way how?
How to read the length of word in unix?
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
What is the use of hoursfromtime() function in transformer stage in datastage?
In Informatica,for the table I can find coreesponding dependent mappings.Likewise can I find the dependent jobs with all the information by using the table name
How do you import and export the datastage jobs?
Describe the main features of datastage?
What are the some differences between 7.x and 8.x version of datastage?
what is use of SDR function?
What are the steps needed to create a simple basic datastage job?
What all are the different way to run a job?
tell me 5 situations when we r using oracle db stages like orecle connector, oracle enterprise