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 the benefits of datastage?
Name the command line functions to import and export the DS jobs?
What are the types of containers?
Can anyone tell me a difficult situation who have handled while creating Datastage jobs?
Define orabulk and bcp stages?
Which algorithm you used for your hashfile?
What is size of a transaction and an array means in a datastage?
how to achieve this output ? Two Input columns(ID & Name) - ID | Name 1 | Jack 1 | Kara In output there should be only 1 column which will be populated as - 1,Jack 1,Kara
What is the difference between validated and compiled in the datastage?
What is the purpose of pivot stage?
what is use of SDR function?
what is ds administrator used for?
What are the components of ascential data stage?
What are orabulk and bcp stages?
describe the Steps to confiure a Qlogic switch