By seeing below example, how can I update ORIGINAL_ORDER_NO null value with an already existing value (ex with: 9007853627), and also update original_order_line_no number with equivalent ORDER_LINE_NO?
I will pass the ORDER_NO and script needs to updates rest of it.
ORIGINAL_ORDER_NO original_order_line_no ORDER_NO ORDER_LINE_NO
---------------------------------------------------------------------
9007853627 1 9008142190 1
9007853627 2 9008142190 2
NULL NULL 9008142190 4
NULL NULL 9008142190 5
Desired output:
ORIGINAL_ORDER_NO original_order_line_no ORDER_NO ORDER_LINE_NO
-----------------------------------------------------------------------
9007853627 1 9008142190 1
9007853627 2 9008142190 2
9007853627 4 9008142190 4
9007853627 5 9008142190 5