How to delete duplicate records from a table?(for suppose in
a table we have 1000 Records in that we have 200 duplicate
Records , so ,how to findout that duplicate Records , how to
delete those Records and arranged into sequence order? one
more thing that there is no primary key at all)

Answer Posted / sneha

select distinct * from table into new_table;

delete table;

select * from new_table into table;

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain powershell included in sql server 2008?

508


What are the advantages of passing name-value pairs as parameters?

665


what is raid? : Sql server database administration

559


Explain indexed views and partitioned view with their syntax.

690


Which tools are available to manage SQL Azure databases and servers?

93






Explain what are the restrictions while creating batches in sql server?

591


How to find out the list schema name and table name for the database?

533


What is user-defined scalar function?

561


What is ddl and dml commands?

514


How do I open port 1433?

532


Explain a differential backup?

575


How to skip remaining statements in a loop block using continue statements?

547


Define outer join?

540


What is normalization and what are the advantages of it?

522


What does indexation mean?

533