SQL Print the name of all Employees together with the name of their supervisor

Try the below

SELECT  t1.EmployeeName AS Manager, t2.EmployeeID as EmployeeName
FROM  Employee t1 
LEFT  JOIN Employee t2 ON  t1.ManagerID=t2.EmployeeID 

Leave a Comment