Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql query

Status
Not open for further replies.

impulse24

IS-IT--Management
Jul 13, 2001
167
US
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.
 
Check the following links for SQL solutions.



The following links are MS SQL Server oriented but may provide some ideas.

Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top