if not exists (select 1 from SYS.SYSEVENT where event_name = '00_22_2026') then 
CREATE EVENT "00_22_2026"
SCHEDULE "00_22_2026_1" START TIME '00:01' START DATE '2026-01-01'
HANDLER
begin
  update ARTIKEL set NDS = 22, name = '22.00%' where VATCode = 'A' and groupid = 0;commit work;
  update ARTIKEL set NDS = 0, VATCode = 'B' where groupid =1;commit work;
  update ARTIKEL set NDS = 22, VATCode = 'A' where groupid > 1;commit work;
  update ACCOUNTCONTENT set VATCode = 'A', NDS = 22 where INVOICENUMBER = 0 and OPERATIONTYPEID in (10,11,12) and OPERATIONID = any(select ID from ARTIKEL where GROUPID > 1);commit work;
  update ACCOUNTCONTENT set VATCode = 'B', NDS = 0 where INVOICENUMBER = 0 and OPERATIONTYPEID in (10,11,12) and OPERATIONID in (select ID from ARTIKEL where GROUPID =1);commit work;
end;
end if;