how to delete duplicate rows in sql server2005

Answer Posted / nittu

Delete from Tbl where Id NOT IN(
select Min(Id)
from tbl
Group By Colmn1,Column2)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain can you implement data mining in ssrs?

106


Explain what is meant by replication of database?

538


What is a non equi join?

544


what are user defined datatypes and when you should go for them? : Sql server database administration

544


How to define output parameters in stored procedures?

527






What is exporting and importing utility?

613


Can you explain what are various ways to enhance the ssrs report?

585


Can you tell me about the concept of ER diagrams?

600


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

578


What is the difference between varchar and nvarchar?

528


Can multiple columns be used in sql group by clause in ms sql server?

554


What is single-user mode and what are the steps you should follow to start sql server in single-user mode?

559


Why I have to use stored procedures?

600


do you know how to configure db2 side of the application? : Sql server database administration

598


How to count groups returned with the group by clause in ms sql server?

562