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

How to delete duplicate records from a table?(for suppose in
a table we have 1000 Records in that we have 200 duplicate
Records , so ,how to findout that duplicate Records , how to
delete those Records and arranged into sequence order? one
more thing that there is no primary key at all)

Answer Posted / sneha

select distinct * from table into new_table;

delete table;

select * from new_table into table;

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens to a trigger with multiple affected rows?

946


How do you handle datasets larger than 50 gb?

162


Explain what are the events recorded in a transaction log?

1006


what are constraints? : Sql server database administration

1057


What is a periodical index?

928


what are the different ways of moving data/databases between servers and databases in sql server? : Sql server database administration

985


What is log cache in sql server?

1046


Why use “pivot” in sql server?

1119


Explain what is sql server english query?

1051


How is SQL Azure different than SQL server?

225


What is the difference between a unique key and primary key?

955


How to transfer an existing table from one schema to another schema in ms sql server?

981


How to send email from database?

1015


How to use linked server?

1193


What is single-user mode and what are the steps you should follow to start sql server in single-user mode?

971