What is a transaction in a database?

What is a transaction in a database?

Approach: Define a logical unit of work.

A sequence of database operations treated as a single unit of work, which either succeeds completely or fails completely.

Follow-up: What does ACID stand for?

Key concepts: acid, commit, rollback.