Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment will demonstrate the use of the Flashback Query Feature. Specifically, information related to the previous state of a table will be displayed. Write

This assignment will demonstrate the use of the Flashback Query Feature. Specifically, information related to the previous state of a table will be displayed.

Write a script, Project3.sql, 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 delete all records with employee number in the range of 7500 - 7800 from the "emp" table.

Issue a statement that repeats Step 2.

Issue a statement to perform a query on the emp table based on its state 5 minutes previous.

Issue a ROLLBACK statement to undo the transaction.

EMP TABLE

EMPNO NUMBER(4) NOT NULL, ENAME VARCHAR2(10), JOB VARCHAR2(9), MGR NUMBER(4) CONSTRAINT EMP_MGR_FK REFERENCES EMP (EMPNO), HIREDATE DATE, SAL NUMBER(7,2), COMM NUMBER(7,2), DEPTNO NUMBER(2) NOT NULL, CONSTRAINT EMP_DEPTNO_FK FOREIGN KEY (DEPTNO) REFERENCES DEPT (DEPTNO), CONSTRAINT EMP_EMPNO_PK PRIMARY KEY (EMPNO));

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

More Books

Students also viewed these Databases questions

Question

What is the "AWS Well - Architected Framework"?

Answered: 1 week ago

Question

Be familiar with the basic ways to manage capacity.

Answered: 1 week ago