if (select count(*) from SubsidyNormativ where Id = 5) = 0 then insert into "SubsidyNormativ" ("Id", "PeriodStart", "PeriodEnd", "Normativ") values(5, '01.01.2011', '31.12.2011', 1.00); end if;