I have a tablle like this:
cust acc
-----------
a 1
b 2
b 3
c 4
c 5
c 6
I Want below o/p:
cust acc
---------------
a 1
b 2|3
c 4|5|6
Please any one can you have any ideas share me.
I have urgent requirement.
Answer Posted / kpk
select cust,wmsys.wm_concat(acc) from tbl group by cust;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what are rollup and cube in t-sql? : Transact sql
How many times can we commit in a loop?
Explain autonomous transaction.
What is clause?
What is cursor in pl sql?
What will you get by the cursor attribute sql%rowcount?
what is the difference between truncate and delete statement? : Transact sql
What is dense_rank in sql?
What is difference between hql and sql?
what is the difference between blob and text? : Sql dba
What is sql stand for?
What is delete command in sql?
What is a record in pl/sql?
Why do we use triggers?
Enlist some predefined exceptions?