write a query to delete similar records in same table

Answer Posted / swapna

One way is to rename the original table to something else,
and copy the unique records into the original table.

rename 'Table2', 'Table1'

select distinct * into Table2 from Table1

drop table1

Is This Answer Correct ?    5 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a nested table in word?

534


What is t sql used for?

551


What is java sql package?

538


Explain what is a database?

652


What are the methods of filing?

520






How do I view a view in sql?

508


How do you drop a trigger?

542


How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?

665


What is aggregate function in sql?

539


How many rows can sqlite handle?

587


What is foreign key in sql with example?

515


Give the order of sql select?

614


Who developed sql?

570


Is primary key a clustered index?

537


How many types of cursors supported in pl/sql?

596