Write a query to delete duplicate records in SQL SERVER
Answer Posted / anuj dhingra
DELETE
FROM MyTable
WHERE ID NOT IN
(
SELECT MAX(ID)
FROM MyTable
GROUP BY DuplicateColumn1, DuplicateColumn2,
DuplicateColumn2)
Is This Answer Correct ? | 12 Yes | 8 No |
Post New Answer View All Answers
List out the differences between global and local temp tables in sql server?
What does it mean to normalize data?
What is pivot and unpivot?
Explain in details security in SQL azure?
How to view existing indexes on an given table using sys.indexes?
How to concatenate two strings in SQL Server.
What are the options which must be set to allow the usage of optimistic models?
Tell me in brief how sql server enhances scalability of the database system?
How do I find sql server instance name?
How to check table values in sql server?
Is oracle faster than sql server?
How can we use ConnectorJ JDBC Driver with MS SQL?
How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?
What is surrogate key? : sql server analysis services, ssas
What are the key configuration files for sql server reporting services ?