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 / rajgopal

select cust,wm_concate(acc) from table_name group by cust;

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the differences between char and nchar? : Sql dba

689


What are the different types of dbms?

640


Does pl sql work in mysql?

618


What is difference between ms sql and mysql?

567


What is rowtype?

653






What is database sql?

626


What is a full join sql?

686


Write an sql query to select all records from the table?

659


Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?

817


What is program debugging?

677


What is the source code of a program?

616


What are stored procedures used for?

638


What is the difference between the sql*loader and import utilities? : aql loader

670


what is the difference between undefined value and null value? : Sql dba

658


What is substitution variable in pl sql?

602