I have the below/attached employee table in an access database. I need a query to find all the direct reports and indirect reports of a particular employee
EmpID Fname Lname MngID
1 Fred Flinstone
2 Linda Thompson 1
3 Sam Adams 1
4 Jason Williams 1
5 Michael Jordan 2
6 Katey Perry 5
If I wanted to find all the direct and indirect reports of EmpID 2, it should return michael and Katey, Excel or access should be ok
This is what I want to do but in access
SQL Query to find all the subordinates of a superior
Open in new window