if 3 duplicate records in a table,i want to delete 2 duplicate
records by keeping 1 duplicate and 1 original as it is,how?
Answer Posted / amol maske
DELETE FROM tablename WHERE ROWID NOT IN(
SELECT MIN(ROWID)FROM tablename GROUP BY columnname);
Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
What are database states in ms sql server?
Tell me the use of keyword with encryption. Create a store procedure with encryption?
Can you explain powershell included in sql server 2008?
What is Federation and Federation Member?
What is unique key constraint?
Why would you call update statistics?
What is 2nf normalization form?
How to update muliple row in single query?
What is a covering index?
How to execute a sql statement using mssql_query()?
What is hot add cpu in sql server 2008?
What is the architecture of ms sql reporting service?
How we can compare two database data?
Explain trigger classes i.e. Instead of and after trigger?
What is the return type of executeupdate ()?