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 are few of the schema objects that are created using PL/SQL?

736


Is it possible to read/write files to-and-from PL/SQL?

845


What is mdf ldf and ndf?

746


What are system versioned tables?

738


What is online transaction processing (oltp)?

749






What does the base_object_type column shows in the user.triggers data dictionary view?

764


Is sql difficult?

924


Is inner join faster than left join?

876


What is substitution variable?

790


What is a mutating table and a constraining table?

758


What is the difference between left and left outer join?

691


What are the types of queries in sql?

746


What is assignment operator in pl sql?

764


explain primary keys and auto increment fields in mysql : sql dba

714


Which software is used for pl sql programming?

683