Motivation
Crash recovery
Example: Transfer $1M from Susan to Jane
S1: UPDATE Account SET balance = balance - 1000000 WHERE owner = 'Susan'
S2: UPDATE Account SET balance = balance + 1000000 WHERE owner = 'Jane'
System crashes after S1 but before S2. What now?
Concurrency: multiple attempts to change one thing at the same time
A sequence of SQL statements that are executed as "one unit"
Two key commands related to transaction