What database commands belong in a transaction can be determined by using ACID test. But those commands must be,
1. Atomic: Atomic is nothing but make up of a single work.
2. Consistent: All the relationships between the data are maintained correctly.
3. Isolated: Changes made by other clients can not affect the current changes.
4. Durable: Once a change is made, it is permanent.