Hi there,
I have 2 tables, table A has a list with a primary key and dates, table B has a list containing a foreign key (to link to table A) with multiple entries for each key with different dates for each.
The problem is I need to link table A to table B on key and only pull records from table B where the date is closest (but not before) the date in table A, should say table B has other fields whose data I need returned but only for those that match as described.
I hope this isn't a confusing description, if you need clarification please post and I'll answer.
Many thanks for looking and I really hope you can help.
Domski
I have 2 tables, table A has a list with a primary key and dates, table B has a list containing a foreign key (to link to table A) with multiple entries for each key with different dates for each.
The problem is I need to link table A to table B on key and only pull records from table B where the date is closest (but not before) the date in table A, should say table B has other fields whose data I need returned but only for those that match as described.
I hope this isn't a confusing description, if you need clarification please post and I'll answer.
Many thanks for looking and I really hope you can help.
Domski
Last edited: