Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Query Question
On 11 Mar 2005 08:06:13 -0800, "mike" <hillmw_at_charter.net> wrote:
>In the table I have like:
>
>num id
>41 5
>41 6
>41 7
>99 5
>89 9
>
>I was wondering if there is a method where I can generate a result
>dataset from a sql query that looks like:
>
>41 5,6,7
>99 5
>89 9
It's not very SQL-ish to concatenate values together like that, but it can be done; see following for one approach:
-- Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk> <http://www.andyhsoftware.co.uk/space> Space: disk usage analysis toolReceived on Fri Mar 11 2005 - 17:24:28 CST
![]() |
![]() |