Employee Table Query

cstimart

Well-known Member
Joined
Feb 25, 2010
Messages
1,180
I have an Employee table that I'm trying to report off of where each employee listed has a field that also lists their manager.

I would like to display/query a list of employees for each manager, but it would also need to display the employees that report to those employees, etc...

Some records are easy as there's only 1 level, but others are more difficult. For example, the President will have a list of employees that will be SVPs, VPs, Dept Mgrs, etc...

Any ideas would be greatly appreciated.

Thanks1
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
i would think , the tEmp table has a field [MANAGER] long (id)
The President's will be empty.
all the VPs will have the Presidents ID
etc..

then you can select 1 manager id, and list all those that have his ID.
query all emps to get all managers, then run thru that list to produce the entire company structure.
 
Upvote 0

Forum statistics

Threads
1,221,848
Messages
6,162,404
Members
451,762
Latest member
Brainsanquine

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top