Question: Add transaction control statement to the below script that will follow the below criteria The DML statements in lines 5,8 and 11 are considered

Add transaction control statement to the below script that will follow the below criteria The DML statements  

Add transaction control statement to the below script that will follow the below criteria The DML statements in lines 5,8 and 11 are considered as one transaction. Statements in lines 14, 18 and 21 are considered a second transaction. you need to roll back only the delete statement in line 18 in the second transaction without affecting the rest of the transaction Write down the line number and the transaction control statement 5 INSERT INTO MyRegions VALUES (6, Pacific'); 6 7 8 INSERT INTO MyRegions VALUES (7, Atlantic'); 9 10 11 INSERT INTO MyRegions VALUES (8, 'Mid West'); 12 13 14 UPDATE MyRegions SET Region Name = 'Eastern 15 WHERE Region ID = 8; 16 17 18 DELETE FROM MyRegion; 19 20 21 DELETE FROM MyRegion WHERE Region_ID = 6; 22

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution Transaction control statement to roll back only the delete statement in line ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!