A rollback undoes a transaction’s changes when an operation fails, restoring data to its state at the transaction’s start. It prevents partial updates from leaving data inconsistent. section 13.1
Money transfer
If money is subtracted from one account but adding it to the destination account fails, rollback restores the earlier data instead of leaving money lost. section 13.1
Figure 13.3 A transaction solves possible inconsistencies that could appear if any of the steps of a use case fail. With a transaction, if any of the steps fail, the data is reverted to how it was at the transaction start.

See how a transaction restores data to its starting state when any step fails. section 13.1













