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

What are the types of database recovery models?

595


State the difference between local and global temporary tables?

556


What is difference between commit and rollback when used in transactions?

493


What is difference between equi join and inner join?

477


What is self contained scalar sub query?

531






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

630


How to execute stored procedure and set temp table in sql server?

550


How many types of subqueries are there in sql server?

461


What is an entity-relationship diagram (erd)?

582


How to identify current user in ssrs report?

238


How to turn off warning messages during php execution?

524


Explain logical operators in sql server?

564


List few advantages of stored procedure.

532


What is compound operators?

544


Difference between aggregate functions of sql?

649