Introduction
BEGIN TRANSACTION starts a group of database actions that should be done together. It helps keep data safe and correct.
When you want to make several changes to the database and ensure all succeed or all fail.
When updating multiple tables that depend on each other.
When transferring money between bank accounts to avoid errors.
When inserting related data that must stay consistent.
When you want to undo changes if something goes wrong.