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 / 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

Can you select everything, but 1 or 2 fields, without writer's cramp?

985


Explain what is a database?

1087


How would you reference column values before and after you have inserted and deleted triggers?

1066


What is the trigger in sql?

959


What is the difference between jpql and sql?

1099


What are the types pl/sql code blocks?

1137


How many postgresql users are there, worldwide?

1065


Is sql a dbms?

1017


what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba

1074


What is raw datatype in sql?

1048


How is a process of pl/sql compiled?

1161


What is int identity in sql?

1146


Explain aggregate functions are available there in sql?

1011


What are joins in sql?

1048


how to do backup entire database? : Transact sql

1148