Hi
Do like this
Step 1 : Take a temporary table of same type.
Step 2 :Now you move the same data to temp table.
Step 3 : You have two tables now with same data.
Step 4 : Sort the original table by object id and value_new descending.(Max value on Top)
Step 5 : Sort the temporary table by object id and value_old ascending.(Min Value on Top)
If you use read statements of both the internal tables you can get the required output.
Regards,
Prakash.