I have to check for the duplicate records before inserting the data into sql table.
I am getting the data/records from flat file
So here is the example, if the table column is blank/has some other values i am inserting the multiline text after checking duplicate criteria like below
select * from table1 where column1 like '% [testing query]
in Multiple Lines %'
So if my next record also has the same/similar text it should not insert since a similar record has already been inserted. after checking the duplicate criteria as below
select * from table1 where column1 like '% [testing query]
in Multiple %'
I tried using % operator but it is not checking for the duplicates. Please let me know if i am doing anything wrong or do i have to use any other method to check the duplicates