I am stuck on a question. Please assist with writing this code: Create a trigger for the EMPLOYEES table that will set the commission amount to .4 whenever the department_id is 80. Test  your trigger COMPLETELY for every event it is defined.  (Sometimes, UPDATE statements must have UPDATE tablename on a separate line by itself to keep APEX from hanging).  This should work both for new rows and existing rows that are updated.  Scenerio:  All employees who are in the sales department (80) will have their commission always set to .4. This trigger is to enforce this business rule automatically.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter3: Table Creation And Management
Section: Chapter Questions
Problem 1MC: Which of the following is a correct statement? You can restore the data deleted with the DROP COLUMN...
icon
Related questions
Question

I am stuck on a question. Please assist with writing this code:

  1. Create a trigger for the EMPLOYEES table that will set the commission amount to .4 whenever the department_id is 80. Test  your trigger COMPLETELY for every event it is defined.  (Sometimes, UPDATE statements must have UPDATE tablename on a separate line by itself to keep APEX from hanging).  This should work both for new rows and existing rows that are updated.  Scenerio:  All employees who are in the sales department (80) will have their commission always set to .4. This trigger is to enforce this business rule automatically.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr