how to delete duplicate rows in sql server 2005?

Answers were Sorted based on User's Feedback



how to delete duplicate rows in sql server 2005?..

Answer / shashikant

distinct <column name>
from <table name>

Is This Answer Correct ?    3 Yes 2 No

how to delete duplicate rows in sql server 2005?..

Answer / balaji

alter ignore table <tablename> add unique key
(field1,field2,....);

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More MySQL Interview Questions

How to display nth highest salary from a table in a mysql query?

0 Answers  


Is microsoft sql same as mysql?

0 Answers  


What is the difference between primary key and candidate key?

0 Answers  


How do you login to MySql using Unix shell?

0 Answers  


Where is the mysql config file?

0 Answers  






What is the return type of mysqli_query?

0 Answers  


What is difference between pdo and mysqli?

0 Answers  


How many types of indexes are there in mysql?

0 Answers  


What is use of mysql?

0 Answers  


What are CSV tables?

1 Answers  


What is truncate command?

0 Answers  


Explain Normalization concept?

2 Answers   Inuva,


Categories