Условие:
Value columns 2 and 3 are inserted by user thus constants.
Value column 5 is a SUM(v_col3-v_col2-v_col1), BUT ONLY if the value is a negative number.
Value collumn 1 is an ABSOLUTE value of the previous row value column 5.
Value collumn 4 is the positive SUM(v_col3-v_col2-v_col1).
Picture is something like this:
Colnr: 1 2 3 4 5
Row: 0 2 3 1
(
Read more... )