I have a table with fields FA & FD where FA is a key field and FD is a date. I want to know how to select, via sql, one record for each available key where the date is closest to but not more than a specified date.
eg if the table looked like:
FA, FD
1, 01/01/2000
1, 30/03/2001
1, 21/09/2001...