HelloWhats the best way to check to see if a record exists before inserting into the table.here is my code belowinsert into dbo.PhoneNumbers (Username, Number, NickName, Group_Name )select @user, recepient, recepient, @mergeID from filter where Username = @user and BatchNumber = @recipient
I want to 1. Check the phonenumbers table to see if the number exists2. select distinct recepient from the filter tableWhats the best way to go about this ?ThanksMM