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
What is an sql server agent?
Explain log shipping and mention its advantages.
sql database suspect We have a sql database that is showing as suspect. How can we recover?
How can I tell if sql server is 32 or 64 bit?
What is 2nf normalization form?
How do I connect to sql server database?
How to delete all rows with truncate table statement in ms sql server?
Create and insert into temp table in sql server?
when would you go for denormalization? : Sql server database administration
Can we hide the definition of a stored procedure from a use?
How do I edit a procedure in sql server?
What’s the use of custom fields in report?
can an order by clause be used in a creation of a view?
How to rebuild master databse?
Explain transaction server isolation?