Question: This assignment will demonstrate the use of transactions. Specifically, changes will be rolled back to a previous state prior to performing a commit. The assignment

This assignment will demonstrate the use of transactions. Specifically, changes will be rolled back to a previous state prior to performing a commit. The assignment will be composed of SQL Plus, DML, and DCL statements. Script that performs the following.

  1. Login to SQL Plus as user SCOTT
  2. Issue a statement to display the employee number, employee name and salaryfrom the "emp" table
  3. Issue a statement to begin a transaction
  4. Issue statement(s) to insert 4 new records into the "emp" table.
  5. Issue a statement that repeats Step 2 (to verify that all changes have been added).
  6. Issue a statement to rollback the changes
  7. Issue a statement that repeats Step 2( to verify that all changes have been undone)

Save the script as Project13.sql

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!