the syntax is something like

SELECT id,parentid from taxonomy
START WITH parentid='x003'
CONNECT BY PRIOR id = parentid

which returns all related rows under a particular row .... does anyone know
how to get all related rows above a particular row ....


Thank You,

Gavin



----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 12:03 PM


> Does any one remember the syntax for a binary search .... say you have an
id
> column and a parentid column .... Oracle can fetch all the ids either
> ascending or descending given a particular id. This is performed a s a
> binary tree search ....
>
> anyone remembers the syntax ?
>
> Thank you
>
> Gavin
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Gavin D'mello
>   INET: [EMAIL PROTECTED]
>
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Gavin D'mello
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to