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 -> Employee table SQL question

Employee table SQL question

From: Cleve Sharpe <cleve_at_cbcsf.org>
Date: 1997/07/11
Message-ID: <01bc8e1e$7c46a960$339ff5cf@cbcsf1.boca.net>#1/1

Hello everyone:

I have an EMPLOYEE table with the following columns:

	ID, 
	NAME, 
	LOGIN *, 
	SUPERVISOR_ID **

I need the simplest SQL statement or PL/SQL script to get the following:         

  1. The SUPERVISOR of the EMPLOYEE who is logged in
  2. That SUPERVISOR's SUPERVISOR Until we get to the head of the company whose SUPERVISOR is himself.

Please help me.
=-=-=-=-=-=-=-=-=-=-=-=-=
Cleve
e-mail: cleve_at_cbcsf.org Received on Fri Jul 11 1997 - 00:00:00 CDT

Original text of this message

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