Jump to content

Delete Duplicated Rows in SQL Server


vinay.sindri

Recommended Posts

:) Good database design practice: always have index columns for tables (i.e. all of them except ones purely for relational purposes).But, if it is too late to insert an index then you will have to combine columns in an attempt to eliminate accidental deletions... umm... better to just define an index column lol :)
Link to comment
Share on other sites

:) Good database design practice: always have index columns for tables (i.e. all of them except ones purely for relational purposes).But, if it is too late to insert an index then you will have to combine columns in an attempt to eliminate accidental deletions... umm... better to just define an index column lol :)
Yes, if it is a direct-access table, please, always use an ID. It makes it easier on you later.DELETE FROM table WHERE table_title_column NOT IN (select distinct table_title_column from table)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...