I'm trying to find a query for sql that will just insert values but not do it should the value exist. Now ive seen alot of examples but they all rely on primary keys or table to table moves. I just want to add a new row in the table and assuming that one of the collumns doesnt have the same value add it. I know the following wont work but its as close to I think it would be and might just clear it up if my writting is not enough.
INSERT INTO table (txtLastName,txtEmail,txtZip)
Values ('Tester','test@test.com','12345')
WHERE txtLastName <> 'Tester'
or WHERE txtEmail <> 'test@test.com'
or WHERE txtZip <> '12345'
Using MS SQL Server.