Delete duplicate records from the table?(Table must have
unique id)
Answer Posted / lince
DELETE
FROM MyTable
WHERE ID IN
(
SELECT MAX(ID)
FROM MyTable
GROUP BY DuplicateColumn1 HAVING COUNT(ID)>1
)
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
How to achieve Paging of records in SQL SERVER?
How do you clear a log file?
what is the primary use of the model database? : Sql server administration
What is normalization? What number of normalization shapes are there?
What are sql servers used for?
What is a database in ms sql server?
What is the filtered index?
What is the chart in report?
What is Federation and Federation Member?
How to set database to be read_only in ms sql server?
What is the purpose of the master database?
What kind of problems occurs if we do not implement proper locking strategy?
What are the differences between stored procedure and the dynamic sql?
how you can configure a running aggregate in SSRS?
Explain the various types of concurrency problem. I.e. Lost or buried updates, uncommitted dependency, inconsistent analysis, phantom read?