Loading subject…
BEGIN TRANSACTION;UPDATE Account SET Balance = Balance - 50 WHERE AccountID = 1001;UPDATE Account SET Balance = Balance + 50 WHERE AccountID = 2002;COMMIT;ROLLBACK; leaves both balances untouched.| Property | What it guarantees in the transfer | What goes wrong without it |
|---|---|---|
| Atomicity | Both updates apply or neither does | Money leaves 1001 and never reaches 2002 |
| Consistency | No constraint is broken, so no balance goes negative | An overdrawn account the rules forbid |
| Isolation | No other transaction reads a balance mid-transfer | Two withdrawals both approved against the same funds |
| Durability | The committed transfer survives a crash | A confirmed transfer disappears on restart |