Answered step by step
Verified Expert Solution
Link Copied!

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  

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Databases questions

Question

connect 4 . py

Answered: 1 week ago