I have a table that gets a new row only when some recalculations are completed (TOTAL
column)
DATE_REFRESH TOTAL
2020-08-28 40000.00
2020-09-04 60000.00
2020-09-22 100000.00
2020-10-13 125000.00
I need to SELECT
a date 2020-09-15
and return 60 000
which is the last amount before the next update/refresh on 2020-09-22
Desired result: 60 000
Ty!
You can use
order by
andtop (1)
: