Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Solution Transaction control statement to roll back only the delete statement in line ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started