Hi,
I have a database table with the fields below, and also sample results of a query. I am trying to generate a report showing all the programmer's employeenum's that report to the top level Design Managers.
Employeenum|Managernum|EmployeeType
1234 3456 Programmer
3456 8910 Senior Programmer
8910 5678 Microsoft Certified Design Manager
9090 7878 Programmer
7878 6612 Senior Programmer
6612 5678 Unix Certified Design Manager
I am trying to figure out that Programmer1234 reports to 8910 Microsoft Certified Design Manager, and that Programmer9090 reports to 6612 Unix Certified Design Manager. Can someone please help with the correct sql statement. Thanks.
I have a database table with the fields below, and also sample results of a query. I am trying to generate a report showing all the programmer's employeenum's that report to the top level Design Managers.
Employeenum|Managernum|EmployeeType
1234 3456 Programmer
3456 8910 Senior Programmer
8910 5678 Microsoft Certified Design Manager
9090 7878 Programmer
7878 6612 Senior Programmer
6612 5678 Unix Certified Design Manager
I am trying to figure out that Programmer1234 reports to 8910 Microsoft Certified Design Manager, and that Programmer9090 reports to 6612 Unix Certified Design Manager. Can someone please help with the correct sql statement. Thanks.