Question: Write a script in SQL Plus that performs the following: Login to SQL Plus as user SCOTT Issue a statement to display the employee number,

Write a script in SQL Plus that performs the following:

Login to SQL Plus as user SCOTT

Issue a statement to display the employee number, employee name and salary from the "emp" table

Issue a statement to begin a transaction Issue statement(s) to insert 4 new records into the "emp" table.

Issue a statement that repeats Step 2 (to verify that all changes have been added). Issue a statement to rollback the changes

Issue a statement that repeats Step 2 ( to verify that all changes have been undone)

Notes: The Oracle Universal Installer (OUI) creates the EMP, DEPT, .BONUS, SALGRADE, CUSTOMER, ORD, ITEM, and PRODUCT.

The following query will display all tables defined in a user's schema.

SELECT table_name FROM user_tables; The EMP table has a FK constraint on the DEPTNO field (i.e. that value must exist in the DEPT table)

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!