Hi, I have a list of agreemeents and the history of the interest rate associated with each agreement.
So eg. Agreement XYZ000001 appears 3 times as there have been 3 changes to the interest rate.
Against a full list of agreement numbers (aooear only once in list), I need to pull the most recent effective date and interest rate
Out of the table below, I'm showing the required result underneath - make sense ?
Agreement# Intreffectivedate Interestrate
XYZ000001 14/05/2015 0.1856
XYZ000001 30/03/2015 0.18425
XYZ000001 14/02/2015 0.1785
XYZ000002 18/05/2015 0.18656
XYZ000002 30/04/2015 0.18425
XYZ000002 14/04/2015 0.1785
XYZ000003 01/05/2015 0.1866
XYZ000003 15/04/2015 0.18425
XYZ000003 14/03/2015 0.1785
Answer
Agreement# Intreffectivedate Interestrate
XYZ000001 14/05/2015 0.1856
XYZ000002 18/05/2015 0.18656
XYZ000003 01/05/2015 0.1866
So eg. Agreement XYZ000001 appears 3 times as there have been 3 changes to the interest rate.
Against a full list of agreement numbers (aooear only once in list), I need to pull the most recent effective date and interest rate
Out of the table below, I'm showing the required result underneath - make sense ?
Agreement# Intreffectivedate Interestrate
XYZ000001 14/05/2015 0.1856
XYZ000001 30/03/2015 0.18425
XYZ000001 14/02/2015 0.1785
XYZ000002 18/05/2015 0.18656
XYZ000002 30/04/2015 0.18425
XYZ000002 14/04/2015 0.1785
XYZ000003 01/05/2015 0.1866
XYZ000003 15/04/2015 0.18425
XYZ000003 14/03/2015 0.1785
Answer
Agreement# Intreffectivedate Interestrate
XYZ000001 14/05/2015 0.1856
XYZ000002 18/05/2015 0.18656
XYZ000003 01/05/2015 0.1866