I have the following:
ID Value1 Value2 Code 0001 3.3 432 A 0001 0 654 A 0001 0 63 A 0002 0 78 B 0002 1 98 B 0003 0 22 C 0003 0 65 C 0003 0 91 C
I need the following:
ID Value1 Value2 Code 0001 3.3 432 A 0001 0 0 A 0001 0 0 A 0002 0 0 B 0002 1 98 B 0003 0 22 C 0003 0 65 C 0003 0 91 C
i.e., for the same "Code" if there is at least one row with Value1 !=0 then all the other rows referred to the same Code will be set to 0 (meaning that 654 and 63 for 0001 relative to Value2 will be set to 0). If this is not the case (like for 0003 nothing will be done).
Can anyone help me please?
Thank you in advance