lost update
One change overwritten by another because both read the old value before either wrote.
A lost update happens when two transactions read a value, compute a new one in the application and write it back; computing in SQL (SET balance = balance - ?) lets the database serialize the changes.
See also