create or replace trigger addbook before insert on book for each row DECLARE xcost float; begin select avg(cost) into xcost from book; if :new.cost >