I have the sum of some values of a data table that I need, to that value I need to subtract from the total sum of users “CEDULA” The “CEDULA” is equal to “123456” and it adds the value that corresponds to this user in the column “IBCS” to which this user corresponds and subtracts it from the total value initially stored in the “CEDULA”.
I have stored the value of the sum of the “CEDULA” I need
I need that in case the “IBCS” corresponding to this cedula if it is repeated is added and then the “CEDULA” equal to 123456 after adding the “IBCS” subtract the value of the “IBCS” corresponding to the total value of the Sum of the “IBCS” equal to “EPS010”, therefore I am trying to set “CEDULA=‘123456’” and the rest to the previous total