Computer Science Homework Solutions
Problem
#70737

Trigger in Oracle

Trigger for comparing an employee's salary with that his or her supervisor.

Explain why this Trigger is not work.


CREATE TRIGGER INFORM_SUPERVISOR1
BEFORE INSERT OR UPDATE OF SALARY, SUPERVISOR_SSN ON EMPLOYEE
FOR EACH ROW
WHEN
(NEW.SALARY > (SELECT SALARY FROM EMPLOYEE
             WHERE SSN=NEW.SUPERVISOR_SSN))
   INFORM_SUPERVISOR(NEW.SUPERVISOR_SSN,NEW.SSN);

Solution
What is this?
By OTA - Overall OTA Rating
Farhan Chowdhury, MS - 4.4/5
Purchase Cost Now
$2.19 CAD (was ~$7.98)
Included in Download
  • Plain text response
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • Draw a Class Diagram for this situation - The following situation describes a company who would like to implement an information system. The company would like to keep track of its employees, departments, and projects. Suppose that the MIS de ...
  • Inheritance - SalariedEmployee - C++ - Write a program that uses the class SalariedEmployee shown below. Your program is to define a class called Administrator, which is to be derived from the class SalariedEmployee. You are allowed to cha ...
  • create a pseudo-code for the following utilizing a bubble sort - Let us assume you are the manager of a firm and have list of employees with the number of days they were absent from work. If you want to find the top 10 absentees in the firm you will need to sort th ...
  • UNIX Commands - You have a file called records.txt containing the list of employee id and employee names. Every line contains a single employee id immediately followed by (that means no space) the employee name in th ...
  • Payroll program - Create a non-GUI based Java application that calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee, the hourly rate, and the ...
Browse