How to delete the duplicate rows from a table in SQL Server ??

Answer Posted / himmat

delete from table name
having count(column name)>1
group by column name

Is This Answer Correct ?    15 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to replace given values with null using nullif()?

572


how many clustered indexes can be created on a table? : Sql server database administration

561


What is the server name for sql management studio?

473


what is an extended stored procedure? : Sql server database administration

492


What are synonyms?

523






Can we use where and having clause together?

504


What is lock escalation and what is its purpose?

555


what is the information that can be stored inside a bit column? : Sql server database administration

516


Explain left outer join and right outer join?

553


How to return the second 5 rows in ms sql server?

630


What are the advantages of using third-party tools?

544


Can a table have 2 primary keys?

504


What is ms sql server service broker?

513


What is a partition function in sql server?

535


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

88