
August 29th, 2004, 03:51 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 22
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Creating Triggers
Hi I am using Oracle9i, and need to create some triggers which ensure that the following constraints are implemented on scott database. These need to satisfy the following criteria:
(1) The following job updates are not allowed: ANALYST SALESMAN
(2) Any update or insert into the SALGRADE table has to ensure that salary ranges for each grade do not overlap.
(3) The itemtot attribute (the inclusion of which in the database is evidence of very bad design) needs to be automatically maintained and not be directly updateable.
Could someone help me with these, as I have no experience of writing triggers and dont really know where to start.
Thanks.
|