write a query to delete similar records in same table
Answer Posted / sivadasan
I think simply we can do like the following..
1. First we have to transfer all data from a table to
temporary table
create table Temp_table as select * from original_table;
2. Delete all record from Original Table....
delete original_table;
3. Now we can write a query by using INSERT and UNION
If any issue let me know....
insert into original_table (select * from temp_table
UNION select * from UNION )
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Explain the methods used to protect source code of pl/sql.
What is the sql*loader? : aql loader
how to check myisam tables for errors? : Sql dba
how to show all tables with 'mysql'? : Sql dba
What is an exception in pl/sql?
What is application trigger?
Explain what is dbms?
Which sorts rows in sql?
What is %s in sql?
What is partition by in sql?
What is the difference between sql and t sql?
What are the different types of functions in sql?
How do temporal tables work?
What is sql select statement?
How can we implement rollback or commit statement in a trigger?