select A.EmpCode, A.EmpName, B.EmpName as 'Reporting To Employee' from EmpTable as A inner join EmpTable as B on A.ReporteeToEmpID=B.EmpID
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)