Question: Exercise 1 User u 1 / p 1 have created the following table and inserted rows EMP 1 ( EMPNO NUMBER ( 4 ) ,

"Exercise 1
User u1/p1 have created the following table and inserted rows
EMP1( EMPNO NUMBER(4),
ENAME VARCHAR2(20),
JOB VARCHAR2(20),
SAL NUMBER(4),
DEPTNO NUMBER(2))
Create a table ARCHIVE_EMP1 with the same schema as the table EMP1
For archive purpose, develop a TD19 trigger that records into ARCHIVE_EMP1 every deleted Employee.
Exercise 2
Develop a trigger that forbids any modification of the employees salary.
Create the table AUDIT_EMP1_SAL(
Uname VARCHAR(30),
ChangeDate DATE,
OldSal NUMBER(4),
NewSal NUMBER(4),
DayNo NUMBER(1))
Develop a trigger that records any change of salaries done during the weekends (assumed as days 6 & 7 of week) into the table AUDIT_EMP1_SAL"

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 Programming Questions!