CREATE TRIGGER verif_service BEFORE INSERT OR UPDATE OF sal ON emp FOR EACH ROW DECLARE actual_sal integer; BEGIN actual_sal:=0; SELECT sal INTO actual_sal FROM SERVICE WHERE empno=:new.empno; IF (new.sal<actual_sal) THEN raise_application_error(-20501, 'valeur de salaire non permise'); END IF; END;