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

select cust, REPLACE(wm_conact(acc), ',', '|') as acc from table
group by cust

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

568


what are the features and advantages of object-oriented programming? : Sql dba

545


What is difference between primary and secondary key?

515


Can sql function call stored procedure?

556


What is pl sql record in oracle?

565






What are operators available in sql?

587


How to get help at the sql prompt?

641


table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

3342


Why having clause is used in sql?

538


What is a boolean in sql?

520


What is pl sql block in dbms?

526


Can we join 3 tables in sql?

498


Is sql better than excel?

517


Is hadoop a nosql?

571


Is sql a oracle?

523