Delete duplicate records from the table?(Table must have
unique id)
Answer Posted / kk
DELETE
FROM MyTable
WHERE ID NOT IN
(
SELECT MAX(ID)
FROM MyTable
GROUP BY DuplicateColumn1, DuplicateColumn2, DuplicateColumn3)
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
Explain throw statement in sql server 2008?
What is an execution plan? When would you use it?
Suppose you want to implement the one-to-many relationships while designing tables. How would you do it?
When I run the sql server 2000 setup, it just hangs. What do I do?
How to use old values to define new values in update statements in ms sql server?
Do you know what is a linked server in sql server?
How will you make an attribute not process? : sql server analysis services, ssas
What is a transact-sql statement batch in ms sql server?
What is ms sql server triggers?
What are the requirements on sql server network connections?
What is query parameter in ssrs?
How to optimize stored procedures in sql server?
Beginning with sql server version 7 0, a new enhanced data type nchar was added what type of data is supported with this data type?
What do you mean by tablesample?
What is blocking?