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 are the differences between clustered and non-clustered index?
What is the difference between push and pull subscription? : sql server replication
what is the primary use of the model database? : Sql server administration
What does asynchronous call backs means?
How to generate create procedure script on an existing stored procedure?
How to add a new dsn with the odbc driver for sql server?
Why variables called the most powerful component of ssis?
What is stretch database in sql server?
Can sql server be linked with other servers like oracle?
what kind of lan types do you know? : Sql server database administration
How does a profiler work?
Define primary key?
How is a full-text index updated?
I applied Transactional with updatable subscriptions replication on 2 tables now i want to delete those 2 tables but i cannot delete those tables as replication is running how can i stop replication for those 2 tables(but i don't want to delete those replicated tables but i need to stop the replication) how can i do that
What are the different authentication modes in sql server? How can it be changed?