What is the purpose of a database transaction?
Q1. What is the purpose of a database transaction?
Answer: To ensure data consistency and integrity
Explanation: A database transaction ensures that multiple operations are executed as a single, all-or-nothing unit, maintaining data consistency and integrity.