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 does it mean to manipulate data?
What command would you use to create an index?
How to select some specific columns from a table in a query in ms sql server?
What do you mean by acid?
What is the difference between cartesian product and cross join?
Define left outer join in sql server joins?
Which language is supported by sql server?
Can group by be used without aggregate functions?
What is bulkcopy in sql?
what is hash nonclustered index
Explain raiserror in sql server?
What is the largest component inside a field?
Benefits of Stored Procedures?
What is transaction server distributed transaction?
What are cursors in ms sql server?