Advantage Concepts
A transaction consists of a command to begin the transaction, the steps to complete the transaction (your insert, update, and delete operations), and a command to end the transaction. Transactions should be limited in their complexity. In most applications, the only operations that should be included within transactions are insert, update, and delete operations. All operations that create files, open files, and receive user input should be excluded. In general, transactions should open/create files first, read/input the necessary information, begin the transaction, issue the insert and update operations, and finally, commit the transaction.