Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Function to concatenate all query results in a single row comma separeted

788402Jul 30 2010 — edited Aug 2 2010
Hi All,
my version is Oracle 10.2.0.4.0

this is my query:

select distinct
table1.id
from table1,
table2,
table3
where table1.id = table2.id
and table2.id = table3.id
and table3.id = '761'

and result is:

61
18
68B
S05
S18
68

could someone provide me a function (or something else) in order to have a result like this:

61,18,68B,S05,S18,68

and call it from another query?


I appreciate your help.

Many thanks.
Alessandro
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2010
Added on Jul 30 2010
14 comments
3,359 views