if not exists (select * from categories where N=9) then insert into Categories(N,Category) values(9,'Чуждестранен студент - по спогодба') end if; go