Question: 1 ) Consider the following trigger that will execute when the manager of the department is updated. Add the necessary code to raise salary of
Consider the following trigger that will execute when the manager of the department is updated. Add the necessary code to raise salary of the new manager by : points
CREATE OR REPLACE TRIGGER trgdept
BEFORE UPDATE OF Mgrssn ON DEPARTMENT
FOR EACH ROW
BEGIN
END;
You may test it like this by making:
UPDATE DEPARTMENT SET Mgrssn WHERE Dnumber;
Now check the salary of the employee whose SSN and verify that it is
Complete the following stored procedure listdependents on page This procedure has one input parameter called empssn and when called, will produce a report showing the dependents if any of this employee. Here is an example to illustrate this procedure: points
SQL exec listdependents;
Dependentname Relationship
Michael Son
Alice Daughter
Elizabeth Spouse
create or replace procedure listdependentsempssn IN char IS
cursor dependentscursor is
begin
dbmsoutput.putlineDependent Name Relationship';
dbmsoutput.putline;
open dependentscursor;
loop
end loop;
close dependentscursor;
end;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
