Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain the methods used to protect source code of pl/sql.

1022


What is the sql*loader? : aql loader

1056


how to check myisam tables for errors? : Sql dba

1321


how to show all tables with 'mysql'? : Sql dba

1118


What is an exception in pl/sql?

1091


What is application trigger?

1002


Explain what is dbms?

1071


Which sorts rows in sql?

1023


What is %s in sql?

1032


What is partition by in sql?

1070


What is the difference between sql and t sql?

1042


What are the different types of functions in sql?

1055


How do temporal tables work?

964


What is sql select statement?

1035


How can we implement rollback or commit statement in a trigger?

1041