📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A user updates a salary, then issues COMMIT, then issues ROLLBACK. What is the salary?

A. NULL
B. The new salary, because the second ROLLBACK has nothing to undo ✅
C. The old salary
D. Zero

Correct Answer: B. The new salary, because the second ROLLBACK has nothing to undo

Explanation

  • The COMMIT made the new salary permanent, so the later ROLLBACK undoes nothing.
  • The new salary remains.