← Database Management System 🟑 Medium πŸ“‹ Sanfoundry

Given below are the SQL statements executed in a user session: CREATE TABLE product (pcode NUMBER(2)…

Question #1686 of 749+ in Database Management System

πŸ“ Question #1686

Given below are the SQL statements executed in a user session: CREATE TABLE product (pcode NUMBER(2), pnameVARCHAR2(10)); INSERT INTO product VALUES(1, 'pen'); INSERT INTO product VALUES (2,'penci'); SAVEPOINT a; UPDATE product SET pcode = 10 WHERE pcode = 1; SAVEPOINT b; DELETE FROM product WHERE pcode = 2; COMMIT; DELETE FROM product WHERE pcode=10; ROLLBACK TO SAVEPOINT a;

⌨️ Press A B C D to select
βœ“

All Options & Correct Answer

A No SQL statement would be rolled back Correct
B Both the DELETE statements would be rolled back
C Only the second DELETE statement would be rolled back
D Both the DELETE statements and the UPDATE statement would be rolled back

πŸ“‹ Question Details

πŸ“š
Subject
Database Management System
🎯
Difficulty
Medium
πŸ“…
Year
β€”
πŸ“‹
Source
Sanfoundry

πŸ“€ Share This MCQ

πŸ“š Want More?

Practice Database Management System MCQs

749+ questions with detailed answers