sql - Delete rows with matching multiple columns same table -
Using SQL, I have 5 columns: SSN, last name, first name, RF and a flag field
Remove from MyTable M where the flag = 2050 and is present (select 1 from MyTable where MyTable.ssn = m.ssn and MyTable.lastname = m, div class = "post -text "itemprop =" text ">
delete last name and MyTable.firstname = m.firstname and MyTable.RF = m.RF and MyTable.flag <> 2050)
Comments
Post a Comment