Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Query Question

Query Question

From: mike <hillmw_at_charter.net>
Date: 11 Mar 2005 08:06:13 -0800
Message-ID: <1110557173.887571.181670@z14g2000cwz.googlegroups.com>


I have a table defined like:

CREATE TABLE ORGS
(

NUM	INTEGER	NOT NULL,
ID	INTEGER	NOT NULL

)

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

My approach currently is to iterate over the result dataset to produce this.

Mike Received on Fri Mar 11 2005 - 10:06:13 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US