I\'m using Oracle PL/SQL.
I have a timestamped table T, and I want to set a row\'s value for column A to be the same as that of the previous row, if they\'re sorted
Can you try something like this:
update x set x = y.A from T x join T y where x.B = (select MAX(B) from T where B < y.B) and x.Timestamp = (select MAX(Timestamp) from T where Timestamp < y.Timestamp) and y.Timestamp - x.Timestamp < 45