Difficulty: Easy
Correct Answer: COMMIT
Explanation:
Introduction / Context:
Transactional control is vital to ensure atomicity, consistency, isolation, and durability (ACID). After issuing DML statements such as INSERT, UPDATE, or DELETE, you must confirm whether to keep or discard those changes. The command that finalizes changes is fundamental across relational databases.
Given Data / Assumptions:
Concept / Approach:
COMMIT ends the current transaction and makes all its changes durable. If you instead want to undo them, you use ROLLBACK. Non-SQL terms like ZIP or PACK are unrelated to transactional control, and SAVE is not a standard SQL transaction-finalizing keyword (though some tools present a 'save' button that issues COMMIT under the hood).
Step-by-Step Solution:
Verification / Alternative check:
DBMS logs and transaction monitors will show a commit record; after COMMIT, changes survive client disconnects or server restarts (subject to durability mechanisms).
Why Other Options Are Wrong:
SAVE: Not a standard SQL keyword for finalizing transactions.
ZIP/PACK: Refer to compression/maintenance concepts, not SQL transactions.
None: Incorrect because COMMIT is well-defined in SQL.
Common Pitfalls:
Relying on autocommit inadvertently; forgetting to commit leaves changes unpersisted and vulnerable to rollback on session end.
Final Answer:
COMMIT
Discussion & Comments