About 1,120,000 results
Open links in new tab
  1. sql - Delete duplicate rows keeping the first row - Stack Overflow

    It can be done by many ways in sql server the most simplest way to do so is: Insert the distinct rows from the duplicate rows table to new temporary table. Then delete all the data from duplicate rows …

  2. sql server - How can I remove duplicate rows? - Stack Overflow

    I need to remove duplicate rows from a fairly large SQL Server table (i.e. 300,000+ rows). The rows, of course, will not be perfect duplicates because of the existence of the RowID identity field.

  3. sql - How can I delete one of two perfectly identical rows? - Stack ...

    May 8, 2013 · The duplicate value comes from one of two rows that are in all respects identical. I can't delete the row via a GUI (in this case MySQL Workbench, but I'm looking for a database agnostic …

  4. sql server - T-SQL: Deleting all duplicate rows but keeping one - Stack ...

    Some other columns may have slightly different data but I do not care about that. I still need to keep one of these rows however. SELECT DISTINCT won't work because it operates on all columns and I …

  5. How to keep only one row of a table, removing duplicate rows?

    I have a table that has a lot of duplicates in the Name column. I'd like to only keep one row for each. The following lists the duplicates, but I don't know how to delete the duplicates and just k...

  6. sql - How can I delete duplicate rows in a table - Stack Overflow

    Sep 18, 2008 · I have a table with say 3 columns. There's no primary key so there can be duplicate rows. I need to just keep one and delete the others. Any idea how to do this is Sql Server?

  7. sql server - Removing duplicate rows (based on values from multiple ...

    Removing duplicate rows (based on values from multiple columns) from SQL table Asked 10 years, 8 months ago Modified 4 years, 10 months ago Viewed 84k times

  8. Delete duplicate records in SQL Server? - Stack Overflow

    Jul 23, 2016 · delete from Employee where ID not in ( select min(ID) from Employee group by EmployeeName ); This will leave the version with the lowest ID in the table. Edit Re McGyver's …

  9. Finding and deleting duplicate values in a SQL table

    Jul 28, 2019 · ROW_NUMBER() distributes rows of the NewTable table into partitions by values in the name and email columns. The duplicate rows will have repeated values in the name and email …

  10. sql server - How to delete all duplicate records from SQL Table ...

    I want to remove duplicate combinations rows using MS SQL? Remove latest duplicate records from MS SQL FriendsData table. here I attached image which highlights duplicate column combinations. How …