And I am trying to populate the DEFAULT RATE from ICA_RATE below.
ICA_INSCODE
ICA_INSBRANCH
ICA INS_CODE
ICA RATE
ICA DATE
M018
100
A001
15%
01/07/2017
M018
100
A001
12%
01/10/2017
M018
100
A001
15%
31/12/2017
There can be many Insurer Codes and Risk Codes. The rate should be selected from Income Date in between the 2 dates or if nothing in between then today.
In my example it picked 15% as it was the last update and 12% as after 01/10/2017 but before the next updated date.
I know as much to think of Interval Match but little beyond that.
If anyone could help me out on this it would be very much appreciated.