I accidently left out a join that was needed:
select e.Name, s.Name
from Employee e, Employee s, Supervisors su
where su.empid = e.empid
and su.supervisorid = s.empid
Sorry about that.... (blame it on the flu)
Andrea Ballard
Database Analyst
IPS-Sendero
>select e.Name, s.Name
>from Employee e, Supervisor s
>where s.SupervisorID = e.EmployeeID
>>I have the following tables,
>>Employee( filelds are EmpID,Name)
>>Example EmpID Name
>> 1 John
>> 2 Murray
>> 3 Luther
>> 4 Sharon
>>Supervisors(fields are EmpID,SupervisorEmpID)
>> Example EmpId SupervisorID
>> 1 2
>> 2 3
>> 3 4
>>I want to retrieve the names of Employees and their supervisors
>>the result should be something like,
>>Emp Name Supervisor Name
>>John Murray
>>Murray Luther
>>Luther Sharon
>>Thanks in advance