0

Filtering based on effective dates

Hi,

I'm trying to get my wages costs and it requires me to pull from two tables. One table has the rate the other has the labor hours, there are also two sets of matching codes in both tables. The rate table has multiple rates for the same codes as the rates have been increased over time(there are effective dates for the rates), how do I return the appropriate rate based on the day worked and effective rate for that period? I need the lastest rate that has an effective date equal or less than the day worked.

Table 1 Table 2
Rate Hours worked
Effective date Day worked
Code 1 Code 1
Code 2 Code 2

Any help would be great, thanks

6 comments

Please sign in to leave a comment.