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 many triggers are possible per table?
What are the difference between clustered and a non-clustered index?
Can sql servers linked to other servers?
what are the new features in SSRS?
What are sub reports?
Explain what is public role in sql server?
What is serializable?
What is Service Broker in sql server 2012?
Explain the concept of recursive stored procedure.
How to invoke a trigger on demand?
How to include text values in sql statements?
What is default constraint in ms sql server?
Explain microsoft sql server functions?
What is set nocount on and what is set nocount off?
What stored by the msdb?