Which SQL command is used to reverse or undo all modifications made during the current transaction that have not yet been committed? MCQ with Answer and Explanation

Which SQL command is used to reverse or undo all modifications made during the current transaction that have not yet been committed?
A. SAVEPOINT
B. UNDO
C. ROLLBACK
D. REVERT
Answer: Option C
Solution (By JKExamLibrary)
The ROLLBACK command is a TCL statement used to undo transactions, restoring the database to its last committed or safe state.

This question belongs to: Computer Database Management System (DBMS)

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1 Report Error
Which SQL component is used to specify a fallback default value for a column when no value is provided during an insert operation?
A. UNIQUE
B. DEFAULT
C. CHECK
D. NOT NULL

Correct Answer: Option B


Explanation:
The DEFAULT constraint assigns a predefined default value to a column when an INSERT statement does not explicitly provide a value for that column.

This question belongs to: Computer Database Management System (DBMS)
Question #2 Report Error
What is the purpose of the SQL DISTINCT keyword?
A. To return only unique rows in the result set
B. To filter rows based on a condition
C. To group the results
D. To sort the result set

Correct Answer: Option A


Explanation:
DISTINCT removes duplicate rows from the query result.

This question belongs to: Computer Database Management System (DBMS)
Question #3 Report Error
Which of the following is a non-aggregate function in SQL?
A. SUM()
B. COUNT()
C. AVG()
D. LENGTH()

Correct Answer: Option D


Explanation:
LENGTH() (or LEN()) is a string function that returns the length of a string, not an aggregate. SUM, COUNT, AVG are aggregates.

This question belongs to: Computer Database Management System (DBMS)