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 is default port number for sql server 2000?

748


What are the rules to use the rowguidcol property to define a globally unique identifier column?

745


What are date and time data types in ms sql server?

723


What is user defined stored procedures?

711


How to get a list of columns in a view using "sys.columns" in ms sql server?

718






What is transact-sql language?

747


How do I partition a table in sql server?

708


Which are the third-party tools used in sql server and why would you use them?

650


Explain how would you store your query in an SSRS report or a Database server?

102


Tell me about joins in database system and explain each in detail.

797


what's the difference between a primary key and a unique key? : Sql server database administration

672


What are .mdf files?

689


Describe triggers features and limitations?

676


What is ems sql management studio? : sql server management studio

754


What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?

822