Hi,
I have to tables one with a name, date and some other records. The second table has name, date and some other records, however in the second table there will be several records with the same name.
I want all the records in table one matching name and date in table 2, but the date in table 2 will not be a exact match. I want the date in table 2 to match to the largest date less than the date in table 1.
Table 1
James, 01/02/23, RecA, RecB, RecC
Table 2
James, 15/12/22, RecD, RecE
James, 12/01/23, RecF, Reg G
James, 29/01/23, RecH, RecI
James, 03/02/23, RecJ, RecK
The merge will bring back the third row in table 2 as that is the highest date less or same as the date in table 1
Can anyone help
I have to tables one with a name, date and some other records. The second table has name, date and some other records, however in the second table there will be several records with the same name.
I want all the records in table one matching name and date in table 2, but the date in table 2 will not be a exact match. I want the date in table 2 to match to the largest date less than the date in table 1.
Table 1
James, 01/02/23, RecA, RecB, RecC
Table 2
James, 15/12/22, RecD, RecE
James, 12/01/23, RecF, Reg G
James, 29/01/23, RecH, RecI
James, 03/02/23, RecJ, RecK
The merge will bring back the third row in table 2 as that is the highest date less or same as the date in table 1
Can anyone help