How To delete duplicate record from a particular table?
Answer Posted / anil sharma
In sqlserver 2000 we must use a unique id per row then we
can delete duplicate rows.
delete from <tablename> where <rowid> not in (select min
(<rowid> from <tablename> group by co1,col2.)
But in sqlserver 2005 there a function RowId.Which is same
as above concept.It return unique id per row.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is BLOCK statements in SQL?
What are the different types of cursor?
When you should use a low fill factor?
What is shrink log file?
How to use linked server?
Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security
Can we call stored procedure in trigger?
Define Business Edition in SQL Azure?
List all the types of user-defined functions?
Does dbcc checkdb requires db to be in single_user mode? : sql server database administration
can we have a nested transaction? : Sql server database administration
Is it true that rules do not apply to data already existing in a database at the time the rule is created?
What is open database communication (odbc)?
How to create a ddl trigger using "create trigger" statements?
How to make conditional sum in ssrs?