dhborchardt
MIS
I am trying to add together all the hours for each job code for Two different pay types. Each employee has a job code and there can be more than one employee with the same job code. Each job code can have one or two pay types, for example 'regular hours - "Productive hours"', or 'Sick/Vacation - "Non Productive Hours"' I need to sum all the non productive hours for a job code and all the non productive hours for the same job codes.
The query I have so far is pulling from two tables hence the many codes to one employee.
The columns in the query are
JobCode PayType hours
For example
Employee A with job code 300
Productive 32
Non 8
Employee b with job code 300
productive 40
non 0
Employee c with job code 310
Productive 20
Non 20
Employee d with jog code 315
productive 10
non 30
TOTALS
job code 300
productive 72
non 8
Job code 310
Productive 20
Non 20
Job code 315
Productive 10
non 30
The query I have so far is pulling from two tables hence the many codes to one employee.
The columns in the query are
JobCode PayType hours
For example
Employee A with job code 300
Productive 32
Non 8
Employee b with job code 300
productive 40
non 0
Employee c with job code 310
Productive 20
Non 20
Employee d with jog code 315
productive 10
non 30
TOTALS
job code 300
productive 72
non 8
Job code 310
Productive 20
Non 20
Job code 315
Productive 10
non 30