Re: sql query

From: John Durst <jdurst_at_sky.net>
Date: 1998/11/04
Message-ID: <3640FCC6.D3A177FA_at_sky.net>#1/1


I assume you mean:

select employee.empnum, manager.ename
from emp employee, emp manager
where employee.mgrno = manager.empnum (+);

With the outer join added for the President who has no manager.

Divkg wrote:

> Let us say . There is a emp table (empnum,ename,sal,mgrno) as we see usnder
> scott/tiger schema.
> please write the query.
> select all empnum and thier magagers name .
Received on Wed Nov 04 1998 - 00:00:00 CET

Original text of this message