December 2010
Intermediate to advanced
451 pages
11h 16m
English
You want to automatically update some particular values within a table based upon another update that has been made on a specific column of another table. For instance, assume that management has decided to change some positions around within your organization. A new manager is coming to one of the current manager positions, so several employees will receive a new manager. You need to find a way to update several employee records to change their manager from the old one to the new one.
Create an AFTER UPDATE trigger that will be executed only when the MANAGER_ID column is updated. The following trigger uses a cursor to obtain the employees that are supervised by the old ...
Read now
Unlock full access