A transaction is an atomic sequence of database operations. When a transaction is executed, either all or none of the operations are performed. The logging system automatically retains all table changes for any transaction in progress until that transaction is either rolled back or committed.