I’m really in a quandary with this, so I thought I’d try again and home someone had some, any insight.
Snezana Ogrizovic
Decision Support Specialist
Quad/Graphics - Information Systems Department (414) 566-6163
Hi Listers,
I am very desperate and any suggestions will be more than appreciated.
Here’s my company’s situation. We have a production system that is being written to track employees and who their managers are. The system works by having each manager enter the employee numbers of each person that works for him or her. So, if I am Jane Manager, I log in and specify that Jim Anyworker and Bob Myworker work for me. Once this information is entered into the production system, we would like to take this information and produce a report that shows the manager, people that report to him and then drill to show the people that report underneath that person.
So, in effect, we’d like to see the following:
Number of
Subordinates
Mr. A - President 100
Ms. B - Vice President 50
Ms. C - Director 50
Mr. D - Manager 25
G - Employee1 0
H - Employee2 0
Mr. E - Manager 25
Mr. F - Vice President of Operations 50
And so on and so on…
We have created a data warehouse structure that contains a table called Supervisor, along with Employee, Department, and other standard tables. That table is structured with the following fields. The names in parentheses are the abbreviations I’ll use in the email to refer to the fields:
LEVEL_1_EMPLOYEE_ID (L1id)
LEVEL_2_EMPLOYEE_ID (L2id)
LEVEL_2_EMPLOYEE_COUNT (L2CT)
LEVEL_3_EMPLOYEE_ID (L3id)
LEVEL_3_EMPLOYEE_COUNT (L3ct)
LEVEL_4_EMPLOYEE_ID (L4id)
LEVEL_4_EMPLOYEE_COUNT (L4CT)
LEVEL_5_EMPLOYEE_ID (L5id)
LEVEL_5_EMPLOYEE_COUNT (L5ct)
LEVEL_6_EMPLOYEE_ID (L6id)
LEVEL_6_EMPLOYEE_COUNT (L6ct)
LEVEL_7_EMPLOYEE_ID (L7id)
LEVEL_7_EMPLOYEE_COUNT (L7ct)
If I were to populate this table it would look like this:
L1id L2id L2CT L3id L3ct L4id L4CT L5id L5ct L6id L6ct L7id L7ct
4275 4200 36 3568 4 3475 10 3314 10
20854 2
4275 4200 36 3568 4 3475 10 3314 10
42975 2
4275 4200 36 3568 4 3475 10 4031 10
4275 4200 36 3568 4 3475 10 4598 10 3711
4
4275 4200 36 3568 4 3475 10 4598 10
10367 4
4275 4200 36 3568 4 3475 10 4598 10
16253 4
4275 4200 36 3568 4 3475 10 4598 10
42427 4
4275 4200 36 3568 4 3475 10 42160 10
4275 4200 36 3568 4 3475 10 60935 10 3232
4
4275 4200 36 3568 4 3475 10 60935 10
20395 4
4275 4200 36 3568 4 3475 10 60935 10
42791 4
4275 4200 36 3568 4 3475 10 60935 10
42939 4
4275 4200 36 3568 4 3875 10 452 9
17618 2
4275 4200 36 3568 4 3875 10 452 9
42831 2
4275 4200 36 3568 4 3875 10 1281 9
16001 3
4275 4200 36 3568 4 3875 10 1281 9
42564 3
4275 4200 36 3568 4 3875 10 1281 9
42592 3
4275 4200 36 3568 4 3875 10 1654 9 5255
4
4275 4200 36 3568 4 3875 10 1654 9 8242
4
4275 4200 36 3568 4 3875 10 1654 9
24755 4
4275 4200 36 3568 4 3875 10 1654 9
42515 4
4275 4200 36 3568 4 3875 10 2923 9 6141
5
4275 4200 36 3568 4 3875 10 2923 9
16845 5
4275 4200 36 3568 4 3875 10 2923 9
42342 5
4275 75 36 72 17 56 57
4275 75 36 72 17 177 57
4275 75 36 72 17 335 57
4275 75 36 72 17 405 57 3227 20
4275 75 36 72 17 405 57 5511 20
4275 75 36 72 17 405 57 9516 20
4275 75 36 72 17 405 57 10473 20
If I were to read and interpret this, I would get Employee 4275 as the highest level in my organization structure. He’s got 36 people (L2CT) that directly report to him. One of the people that reports to him, Employee 4200, has 4 people (L3CT) that report to him.
The Report would look like this:
Employee: 4275 36 Subordinates
Employee: 4200 4 Subordinates
Employee: 3658 10 Subordinates
Employee: 3475 10 Subordinates
Employee: 4598 4
Subordinates
42160 0
Subordinates
60935 4
Subordinates
And so on… We’d like to be able to drill on this type of report, but we’re not sure how to include these changing counts.
I forgot to mention that we don’t have a set number of levels at the company, so we settled on 7 for the time being because that was the most we currently had in one department.
If anyone has any ideas, please please please respond. We are in the early stages of this project, that we would even change table structures to achieve this report.
Thanks in advance for any suggestions.
Listserv Archives (BOB member since 2002-06-25)