Hi,
I have two tables in Access, one for Rates, and another for peoples Time every week. They look like this for example:
(Note all dates are in dd/mm/yy format)
Rate Table:
-----------------
PERSON RATE EFFECTIVE_FROM
James 50.00 01/01/2007
James 60.00 04/05/2008
James 70.00 10/10/2008
Time table
-----------------
PERSON WEEK_ENDING HOURS
James 11/01/2007 10
James 22/05/2008 5
I'd like a query which will show me the correct rate to use for the persons time, so 2 records for James, one showing 10 hours with a rate of 50, and another showing 5 hours at a rate of 60.
How can I do this in access/sql ? Please help.
Tags: