sql server - delete duplicate rows -


Anyone know how to remove duplicate rows by writing a new way from the script below to improve the functionality.

  DELETE lt1 FROM #listingsTemp lt1, #listingsTemp lt2 WHERE lt1.code = lt2.code and lt1.classification_id & gt; Lt2.classification_id and (lt1.fap  

:

  Delete table_a where the row is not (Select the minimum (line) from Table_A group by Table 2, column 2);  

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? -