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 -> Re: Avoiding external join by joining strings

Re: Avoiding external join by joining strings

From: Rene Nyffenegger <rene.nyffenegger_at_gmx.ch>
Date: 4 Oct 2004 15:13:09 GMT
Message-ID: <slrncm2p0g.328.rene.nyffenegger@zhnt60m34.netarchitects.com>


> Hi,
>
> I have a program, which reads a list of rows from table A. There is a
> 1:n relation
> between table A and B. For any row we find in A, we start a query for
> the matching rows in B , reading the "name" column. Finally, we
> concatenate these "name"
> columns into a string like
>
> "name1, name2, name3"
>
> Is it possible, to let Oracle do the concatenation? If so, we could
> avoid the per row queries (which I call external join), thus possibly
> speeding up the operation a lot.

Jochen, it is possible, and a discussion thereof would be on my homepage as well: http://www.adp-gmbh.ch/ora/sql/user_def_agg.html

hth
Rene

-- 
  Rene Nyffenegger
  http://www.adp-gmbh.ch/
Received on Mon Oct 04 2004 - 10:13:09 CDT

Original text of this message

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