Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> query to combine a column
I have a query that returns something like this, which is in a pl/sql
function:
id description col3
357 anteater stuff357
357 aardvark stuff357
357 wombat stuff357
677 kangaroo stuff677
What I want is a query that will transform the results of the above query like this:
id description col3 ------------------------------------------------------------- 123 dingo stuff123 357 anteater$$aardvark$$wombat stuff357 677 kangaroo stuff677
I want to remove the duplicate case_nums and combine their descriptions. The '$$' would be for use as a marker for splitting up the string inJava.
Any suggestions on how to do this, if it can be done?
Alternatively - This query is used to populate a cursor, which is returned by the function.
Is there a way to make the transformation in pl/sql and still return a cursor from the function? Received on Fri Jul 13 2007 - 19:44:57 CDT
![]() |
![]() |