Need some help please. I have the following table:
| Accountno | TrackNo | PercentInc | CreateDate | Lastdate |
|---|---|---|---|---|
| 123456 | 396 | 3 | 01/03/2019 | 24/05/2021 |
| 123456 | 516 | 0.9 | 20/01/2020 | 25/06/2020 |
| 123456 | 516 | 3 | 01/07/2013 | 29/10/2021 |
| 123456 | 396 | 1 | 12/12/2018 | 12/05/2018 |
| 123456 | 396 | 2 | 05/09/2019 | 08/11/2019 |
| 123456 | 516 | 0.4 | 08/09/2018 | 30/12/2020 |
I need to show results one row per TrackNo - I have to display the PercentInc where the CreateDate is the latest but show the LastDate for that row with the max (LastDate) Results:
| Accountno | TrackNo | PercentInc | CreateDate | Lastdate |
|---|---|---|---|---|
| 123456 | 396 | 2 | 05/09/2019 | 24/05/2021 |
| 123456 | 516 | 0.9 | 20/01/2020 | 29/10/2021 |
Thanks