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

Home -> Community -> Usenet -> c.d.o.server -> Re: hierarchical query - returning a treewalked subset

Re: hierarchical query - returning a treewalked subset

From: SpaceMarine <spacemarine_at_mailinator.com>
Date: Fri, 09 Nov 2007 12:47:53 -0800
Message-ID: <1194641273.219496.45320@v3g2000hsg.googlegroups.com>


On Nov 9, 2:32 pm, SpaceMarine <spacemar..._at_mailinator.com> wrote:
> On Nov 9, 1:52 pm, DA Morgan <damor..._at_psoug.org> wrote:
>
> > Take any query that produces a result set in Oracle.
> > Wrap it with parentheses so it becomes an in-line view.
> > SELECT DISTINCT from it.
>
> while i havent tried that yet, my initial thought was that it wouldnt
> work -- because unique descendants of a duped-row would still be
> present, throwing off the LEVEL hierarchy / row order.

...but then again, it may, since that scenario could be impossible (if a row is duped, then its descendants would all be duped too, and wouldnt be unique any longer). will have to test it further when i get back.

sm Received on Fri Nov 09 2007 - 14:47:53 CST

Original text of this message

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