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 do you declare a constant?

523


What does select * from mean in sql?

1984


Explain spool.

682


How delete all data from all tables in sql?

533


How to download oracle sql developer?

654






Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?

666


How insert into statements in sql?

586


what is timestamp in mysql? : Sql dba

561


Can I copy :old and :new pseudo-records in/to an oracle stored procedure?

662


what does myisamchk do? : Sql dba

555


how to see the create table statement of an existing table? : Sql dba

521


What are the constraints available in sql?

575


What are the properties of a transaction?

558


What is sql*plus?

565


Is progress software supports to ( pl/sql )?

523