ACID & Transactions
Group multiple statements so they succeed or fail as a unit — protecting consistency in the face of crashes and concurrency.
A transaction groups several statements so they behave as a single indivisible operation, which is the foundation of correctness whenever one logical change touches more than one row or table. The canonical example — transferring money by debiting one account and crediting another — shows why: if the system crashes between the two updates, money must not vanish or be created. Transactions guarantee that either both happen or neither does. The properties they provide are captured by the acronym ACID.
A bank wire — debit one account, credit another. Both happen, or neither. A power outage mid-transfer leaves both accounts as if nothing happened.