I have a table with payroll transactions and a table with dept activity (dates employees were transferred to another dept). I am trying to make a query that will add the correct dept for each payroll transaction
DeptAct
Emp Dept TDate
101 201 01/01/05
101 202 02/01/05
Payroll
Emp Amt PDate
101 500 01/01/05
101 250 02/05/05
The query results, should look like this:
Query1
Dept Emp Amt
201 101 500
202 101 250
Any advice would be appreciated
Thank you
DeptAct
Emp Dept TDate
101 201 01/01/05
101 202 02/01/05
Payroll
Emp Amt PDate
101 500 01/01/05
101 250 02/05/05
The query results, should look like this:
Query1
Dept Emp Amt
201 101 500
202 101 250
Any advice would be appreciated
Thank you