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

What is an etl file?

522


How would we use distinct statement? What is its use?

599


what is a join? : Sql server database administration

539


What is indexing in sql server with example?

517


what is new philosophy for database devises for sql server 7.0? : Sql server database administration

513






How we can compare two database data?

515


What is thr feature of change data capture?

501


What is the report builder?

106


What is the xml datatype?

619


What is the latest version of microsoft sql server?

479


How to find the source of a table in sql server?

523


How can we delete a table in sql server?

547


What are the properties of the transactions?

608


how many type of indexing in database?

571


Explain features of analysis services?

519