What is a transaction in a database?
Q1. What is a transaction in a database?
Answer: A sequence of SQL statements executed as a single unit
Explanation: A transaction is a sequence of operations performed as a single, all-or-nothing unit of work, ensuring data consistency and integrity.