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

how to use case expression? : Sql dba

549


What is delimiter in pl sql?

582


What are the different types of database management systems?

530


How do I filter in sql profiler?

534


Why should I use postgresql?

561






explain the difference between bool, tinyint and bit. : Sql dba

520


What is record in pl sql?

591


How would you reference column values before and after you have inserted and deleted triggers?

620


what is user defined functions? : Sql dba

545


how to shutdown mysql server? : Sql dba

563


what are all the different normalizations? : Sql dba

505


What is faster join or subquery?

510


Why do we create stored procedures & functions in pl/sql and how are they different?

500


Is sql a scripting language?

513


What is the difference between an inner join and an outer join?

514