About 154,000 results
Open links in new tab
  1. 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.

  2. sql - Delete duplicate rows keeping the first row - Stack Overflow

    9 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 …

  3. Finding and deleting duplicate values in a SQL table

    Jul 28, 2019 · Also indices of duplicates should be identified. Self join is a good option but to have a faster function it is better to first find rows that have duplicates and then join with original …

  4. SQL How to remove duplicates within select query?

    Sep 12, 2010 · Can you clarify what precision of date you start considering dates duplicate - day, hour, minute? In any case, you'll probably want to floor your datetime field. You didn't indicate …

  5. SQL - Remove the duplicate Results - Stack Overflow

    3 You can use the in SQL Server to get the distinct records only. Apart from this you can also use the function to get the distinct result by assigning the numbers to a result set. The syntax of …

  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 …

  7. t sql - Delete duplicate records in SQL Server? - Stack Overflow

    Jul 23, 2016 · If you're looking for a way to remove duplicates, yet you have a foreign key pointing to the table with duplicates, you could take the following approach using a slow yet effective …

  8. Get unique values using STRING_AGG in SQL Server

    May 29, 2018 · 73 Use the DISTINCT keyword in a subquery to remove duplicates before combining the results: SQL Fiddle

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

    0 table has duplicate rows and may be some rows have no duplicate rows then it keep one rows if have duplicate or single in a table. table has two column id and name if we have to remove …

  10. t sql - remove duplicates from sql union - Stack Overflow

    Nov 8, 2010 · At least T-SQL removes all duplicates, even if they are coming from the same data set.