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

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -