1. A method comprising: receiving a database statement that makes a change that causes a loss of data, and contains a clause that specifies an aggregate operation to be performed on a plurality of values associated with the change; and in response to receiving the database statement, performing the aggregate operation on the plurality of values.