TRIGGER aircraft_hrs_check                                                     /* PL/SQL */
    AFTER UPDATE OF flying_hrs ON aircraft
    FOR EACH ROW
BEGIN
    IF :new.flying_hrs < :old.flying_hrs THEN
        RAISE_APPLICATION_ERROR (-20001,
                                 'The number of flying hours doesn''t look right.'
                                );
    END IF;
END;
