I\'m trying to do a trigger but I get a mutating table error. The SQL code is something like this:
CREATE OR REPLACE TRIGGER CHK_Apartado_D BEFORE INSERT OR UPDA
Your trigger fires on update or insert of CONTRACTS and then tries to update CONTRACTS, which fires the trigger.... See the problem?
You need to work out the enddate and then actually do the insert / update.