I got this query table, now I need one more column that would show all the latest value of unit id which is the true value of the custom and currentUnit column.
data table image
Expected result should be as shown in this screenshot:
expected result image
Any help please!