📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

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

A. NULL
B. Zero
C. The old salary before the update ✅
D. The new salary

Correct Answer: C. The old salary before the update

Explanation

  • ROLLBACK restores the value from before the transaction.
  • The update is discarded as if it never happened.