Question: ( 5 - 2 ) Question 1 : Write a script that does the following: Turn off Autocommit Insert a new row into sec 0

(5-2) Question 1:
Write a script that does the following:
Turn off Autocommit
Insert a new row into sec0502_departments
Save this change by issuing a commit command
Insert another new row into sec0502_departments
Undo this change by issuing a rollback command
Display all the rows in sec0502_departments
(5-3) Question 2:
Write a script that does the following:
Turn off Autocommit
Insert a new row into sec0503_savings_accounts with all of data from the
sec0503_checking_accounts table for customer BOB WILKINS
Delete customer BOB WILKINS data from the sec0503_checking_accounts table
Commit these changes
(5-3) Question 3:
Write a script that does the following:
Turn off Autocommit
Update sec0503_savings_accounts to decrease the balance of customer FRED BOYD by
$20,000
Update sec0503_checking_accounts to increase the balance of customer FRED BOYD
by $20,000
Display all rows in sec0503_savings_accounts
Display all rows in sec0503_checking_accounts
Rollback these changes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!