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

Sorry for the previous answer....

We can do like this ,

1. First we have to transfer all data from original_table
table to a 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

insert into original_table (select * from temp_table
UNION select * from temp_table);

any issues let me know.....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does sql stand for?

1053


What do you understand by case manipulation functions?

1077


What are secondary keys?

1030


What are aggregate functions in sql?

1225


What are the qualities of 2nf?

1094


What are sql commands?

1065


Is merge a dml statement?

1029


what is normalization? : Sql dba

1136


What is the difference between pl and sql?

1153


What are the events on which a database trigger can be based?

1237


What is pl/sql table? Why it is used?

1078


What is package in pl sql?

1079


What does desc stand for?

1122


what are the difference between clustered and a non-clustered index? : Sql dba

1081


What are pl sql procedures?

1077