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


Please Help Members By Posting Answers For Below Questions

How to use sql*plus built-in timers?

576


how to drop an existing table in mysql? : Sql dba

554


What does select * from mean in sql?

1988


Define the select into statement.

570


what is the command used to fetch first 5 characters of the string? : Sql dba

1132






Compare sql & pl/sql

606


What is on delete set null?

563


What is the use of index in hive?

548


What does trigger mean in psychology?

534


What is use of trigger?

510


What is write ahead logging in sql server?

562


How do you write an inner join query?

511


What is the use of pl/sql table?

556


What are sql constraints?

564


Is sql difficult?

744