Respected Users,
I one table called Employee as follows
EmpId | EmpName | ManagerId
1 Smith 10
2 John 11
10 Ted 2
11 Lowson 1
Every employee has a manager. each manager is Employee.
Now, I want to write a query such that All the employee names with their manager names.
I tried something like this>>>
select a.EmpName,b.EmpName from Employee a,b where b.ManagerId=a.EmpId
but failed.
Kindly guid me.
Try this,,