I have two tables as shown below. They are not joined. I wish to create a Query that will select the correct rate from Table 1 at the appropriate date in Table 2. Can anyone help please (supply the SQL for the query)?
Table1-Rates
EffDate Rate
22/01/2004 2.5
27/02/2004 2.3
15/03/2004 2.1
29/03/2004 2.8
Table2-Tasks
TaskRef TaskDate
A001 24/01/2004
A002 31/01/2004
B003 27/02/2004
A015 02/03/2004
C005 16/03/2004
A014 19/03/2004
A003 31/03/2004
B001 14/04/2004
Thanks in advance,
Softop
Table1-Rates
EffDate Rate
22/01/2004 2.5
27/02/2004 2.3
15/03/2004 2.1
29/03/2004 2.8
Table2-Tasks
TaskRef TaskDate
A001 24/01/2004
A002 31/01/2004
B003 27/02/2004
A015 02/03/2004
C005 16/03/2004
A014 19/03/2004
A003 31/03/2004
B001 14/04/2004
Thanks in advance,
Softop