I have two tables:
Table1: Product, SaleDate
Table2: Product, SaleDate, Price
I'd like to join the two tables on Product and the closest SaleDate. For example, Table1 has a SaleDate of 8/18/05, while Table2 has SaleDate's of 7/1/05, 8/1/05, and 9/1/05 for the same product. I'd like to match this product to Table2.SaleDate = 8/1/05.
Any ideas?
Table1: Product, SaleDate
Table2: Product, SaleDate, Price
I'd like to join the two tables on Product and the closest SaleDate. For example, Table1 has a SaleDate of 8/18/05, while Table2 has SaleDate's of 7/1/05, 8/1/05, and 9/1/05 for the same product. I'd like to match this product to Table2.SaleDate = 8/1/05.
Any ideas?