Empid Empname Managerid 1 A Null 2 B 1 3 C 2 4 D 1 5 E 6 F 3
SELECT a.EmpName, b.EmpName FROM MyTable a JOIN MyTable b ON a.ManagerID = b.EmpId
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)