Middle
What is a transaction? Provide a definition of the concept.
sobes.tech AI
Answer from AI
A transaction is a logically connected sequence of operations on a database that is executed as a single unit. The main properties of a transaction are atomicity, consistency, isolation, and durability (ACID). This means that either all operations of the transaction are successfully applied, or in case of an error, all changes are rolled back, leaving the database in a consistent state.