write a query to delete similar records in same table
Answer Posted / umadevi
--deletes records within table without changing table name
delete from temp t1 where rowid<(select max(rowid) from temp
t2 where t1.empno=t2.empno) order by empno;
or
--create new table n insert records.
create table t1 as select distinct * from temp;
or
(truncate table)
truncate table t1;
insert into t1 select distinct * from temp;
Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
Can delete statement be rollbacked?
What is pivot query?
Is it possible to create startup or shutdown trigger for on-schema?
What is the difference between sql and mysql?
How many unique keys can a table have?
Which command is used to delete a trigger?
How do I install microsoft sql?
What are the two characteristics of a primary key?
What is clause in sql?
Can you upgrade sql express to full sql?
What are the types of join in sql?
What are %type and %rowtype for?
How do I view tables in mysql?
How to start oracle sql developer?
What is 19 null in sql?