Transaction — unit of work that is atomic.
ACID properties:
Example:
1BEGIN TRANSACTION;23UPDATE accounts SET balance = balance - 100 WHERE id = 1;4UPDATE accounts SET balance = balance + 100 WHERE id = 2;56COMMIT; -- or ROLLBACK on error
BA relevance: