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

Home -> Community -> Usenet -> comp.databases.theory -> Recursive Query

Recursive Query

From: Ray <rfelipe_at_earthlink.net>
Date: 18 Mar 2003 12:16:27 -0800
Message-ID: <2ee70ad6.0303181216.3ad7573b@posting.google.com>


Hi,

I have a table with an Id that references itself recursively and need help building the query.

Here's the table structure:
employee_id PRIMARY_KEY
employee_name
supervisor_id

The supervisor_id refers to the employee_id depending on who is the employee
supervisor.

My resultset should look like:
employee_id - employee_name - SUPERVISOR_NAME (instead of Id)

Thanks,

-Ray Received on Tue Mar 18 2003 - 14:16:27 CST

Original text of this message

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