Hello,
Can anyone advice if it's possible to insert a record (name + address) into a table where it would search the table first for duplicate 'name' or 'address'?
I normally run 2 procedures in which first procedure searching for duplicate. If it's empty, then call 2nd procedure to do the INSERT.
Can this be done in one procedure or sql statement?
Thanks much in advance.
Allan
Can anyone advice if it's possible to insert a record (name + address) into a table where it would search the table first for duplicate 'name' or 'address'?
I normally run 2 procedures in which first procedure searching for duplicate. If it's empty, then call 2nd procedure to do the INSERT.
Can this be done in one procedure or sql statement?
Thanks much in advance.
Allan