Introduction
Transactions help keep data correct and safe by making sure all parts of a task finish together or not at all.
When transferring money between bank accounts to avoid losing or duplicating money.
When updating multiple related records that must stay consistent.
When saving a group of changes that should only apply if all succeed.
When deleting data that affects other tables and must be done carefully.