While I am searching through my database, I run an INSERT statement if I find that a particular item does not exist, and I run a different INSERT statement if I find one or
Simply use the following:
IF((SELECT count(*) FROM table)=0) BEGIN .... END