I have an Employee table which show an employee ID and their manager ID. The managers want reports that will not only show his direct reports but also himself and all those employees who report to his direct reports.
For example, my table would have the following table:
The report I need to write for Manager1 would have his information as well as his direct reports (Supervisor1 and Supervisor2) and their reports (Employee1 through Employee4).
Is there some kind of Join I can use or any other code to relate this one table back to itself multiple time to pick up the indirect reports?