Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

How to write triggers to increment or decrement the number of employees

CREATE TRIGGER NEW_HIRED
     AFTER INSERT ON EMPLOYEE
     FOR EACH ROW
     UPDATE COMPANY_STATS SET NBEMP = NBEMP + 1
Source by www.ibm.com #
 
PREVIOUS NEXT
Tagged: #How #write #triggers #increment #decrement #number #employees
ADD COMMENT
Topic
Name
1+9 =