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
Post a Comment