I am trying to create a query that will give me the total cost per employee/Month/Dept.
Table #1 – Employee #, Month, Payroll Amount, Dept #
Table #2 – Employee #, Month, Benefit Amount
Table #3 – Employee #, Month, Deduction Amount
When an employee switches departments he will have more then one record in table #1, but in the other two tables he would only have one record.
The benefit and deduction amounts can either be applied ratably (by payroll amount) to the departments, or to any one dept for the employee in that month.
Any help would be greatly appreciated.
Table #1 – Employee #, Month, Payroll Amount, Dept #
Table #2 – Employee #, Month, Benefit Amount
Table #3 – Employee #, Month, Deduction Amount
When an employee switches departments he will have more then one record in table #1, but in the other two tables he would only have one record.
The benefit and deduction amounts can either be applied ratably (by payroll amount) to the departments, or to any one dept for the employee in that month.
Any help would be greatly appreciated.