How To delete duplicate record from a particular table?

Answer Posted / manoj

DELETE FROM table_name a
WHERE ROWID >(SELECT min(ROWID)
FROM table_name b
WHERE a.col_1=b.col_1 )

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of Index will get created after executing the above statement?

651


How can you insert values in multiple rows using one Insert statement?

629


What is query processing?

551


What stored procedure can you use to display the current processes?

507


Explain filtered indexes?

568






What is code near application topology?

199


What is a fan-out query in SQL Azure?

99


What is the maximum size of sql server database?

517


you have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation? : Sql server administration

549


How is table type constraint applied to a table?

557


What is constraints and its types?

512


How to defragment indexes with alter index ... Reorganize?

595


When do you think a developer should use sql server-based cursors?

532


What is format parameter in ssrs?

109


What is standby servers? Explain types of standby servers.

524