delete from aktionspreishepatitits ;insert into aktionspreishepatitits (AKTION, PREIS, GETAN) values ('HEPATITIS A+B ERW', 55, '01.01.1901' );insert into aktionspreishepatitits (AKTION, PREIS, GETAN) values ('HEPATITIS A+B KINDER', 35, '01.01.1901' );insert into aktionspreishepatitits (AKTION, PREIS, GETAN) values ('HEPATITIS A ERW', 42, '01.01.1901' );insert into aktionspreishepatitits (AKTION, PREIS, GETAN) values ('HEPATITIS A KINDER', 31, '01.01.1901' );commit;beginupdate krkzuschuss kz set zuschuss = ( select avpneu - preis from artikelextern a , KRKAKTIONSARTIKEL k, aktionspreishepatitits ahwhere a.pzn = k.pzn and k.aktion = kz.aktion and ah.aktion = kz.aktion)where aktion like 'HEPAT%';IF SQL%ROWCOUNT = 4 thenupdate aktionspreishepatitits set getan = sysdate;commit;end if;end;insert into pvVerarbeitet ( pvDatum, eingespielt, node, code , text )select '01.04.2011' , sysdate , 'Manuell', 'SOPREI' , ' ' from dualwhere not exists ( select 1 from pvverarbeitet where pvdatum = '01.04.2011' and code = 'SOPREI' );commit;insert into pvVerarbeitet ( pvDatum, eingespielt, node, code , text )select '01.04.2011' , sysdate , 'Manuell', 'PV' , ' ' from dualwhere not exists ( select 1 from pvverarbeitet where pvdatum = '01.04.2011' and code = 'PV' );commit;