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 -> SQL: recursive select

SQL: recursive select

From: Harald Mitterhofer <Harald.Mitterhofer_at_siemens.at>
Date: Mon, 20 Dec 1999 17:27:50 +0100
Message-ID: <385E5906.C64A3998@siemens.at>


hi!

i have a general question concerning self-referencing tables; let's assume a table of employees, where each employee's manager is stored in the same table and managers can themselve have managers;

is there a way to query all managers of person X with ONLY ONE SELECT-statement?

e.g.: X has manager Y, who could possibly have manager Z, who could...(unknown depth of recursion!)
=> managers of X are Y,Z,...;

/thanxs Received on Mon Dec 20 1999 - 10:27:50 CST

Original text of this message

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