if (select count(*) from Registers where RegisterName='ByCreditCardPay')=0 then if (select IntStojnost from Registers where RegisterName='AllowFiscBonCrCard')=0 then insert into Registers(IntStojnost,RegisterName,Komentar) values(1,'ByCreditCardPay',''); else insert into Registers(IntStojnost,RegisterName,Komentar) values(0,'ByCreditCardPay',''); end if; end if;