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
sed,awk,head
Is the value of staging variable stored temporarily or permanently?
What are the different plug-ins stages used in your projects?
What is the roundrobin collector?
Explain datastage architecture?
Which warehouse using in your datawarehouse
Can you implement SCD2 using join, transformer and funnel stage?
whom do you report?
What is the difference between hashfile and sequential file?
What are system variables and sequencers in datastage
CHANGE CAPTURE
1)s.key generate 1 to 700 records today. tomorrow another 400 will updated how to update the records using s.key generator? 2)source is like :-- DB --> T/F stage1 --> seq1file T/f 1 is linking with T/F2 ---> seq 2 how to load the data? in source i given some conditions those r going in seq1. The another data will going to seq2 how to do this ?
what are the devoleper roles in real time? plz tell i am new to datastage....
how to add a new records into source?
If we take 2 tables(like emp and dept),we use join stage and how to improve the performance?