Answers for "delete duplicate rows where sqwl"

SQL
0

Query to remove duplicate rows from a table

DELETE FROM Customers WHERE ROWID(SELECT MAX (rowid) FROM Customers C WHERE CustomerNumber = C.CustomerNumber);
Posted by: Guest on November-19-2021
0

delete duplicate rows

WITH CTE AS(
   SELECT [col1], [col2], [col3], [col4], [col5], [col6], [col7],
       RN = ROW_NUMBER()OVER(PARTITION BY col1 ORDER BY col1)
   FROM dbo.Table1
)
DELETE FROM CTE WHERE RN > 1
Posted by: Guest on June-10-2021

Code answers related to "delete duplicate rows where sqwl"

Code answers related to "SQL"

Browse Popular Code Answers by Language