I’m trying to create a self join in a table that selects specific records as it cascades through a record chain. Each employee record contains a field “ReportsTo” which contains the employee id of the manager each employee reports to. All levels of management are contained in this file. Here’s a sample scenario:
I want to select all employees that report to a particular VP:
Rec No. Emp No ReportsTo
1 3 (null)
2 33 3
3 241 33
4 252 33
5 342 44
6 324 33
When I run the Access query specifying Employee #3 – the returned records should be: 2, 3, 4 and 6.
Any help is greatly appreciated!!!
Thank you,
- JB
I want to select all employees that report to a particular VP:
Rec No. Emp No ReportsTo
1 3 (null)
2 33 3
3 241 33
4 252 33
5 342 44
6 324 33
When I run the Access query specifying Employee #3 – the returned records should be: 2, 3, 4 and 6.
Any help is greatly appreciated!!!
Thank you,
- JB