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 duplicate records in SQL SERVER

Answer Posted / mahesh babu ummaneni

inthis we have some steps
-->first rimove duplicate values from table
select distinct * from ta1
-->copy the data into anothetable
select distnice * into tb2 from tb1
-->remove the first table
drop table tb1
-->copy the tb2 data into tb1
select distinct * into tb2 from tb1

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is nonclustered index with included columns ?

1014


What does the on delete cascade option do?

1062


Determine when to use stored procedure to complete sql server tasks?

1107


Can you explain powershell included in sql server 2008?

989


How to create median function?

172


what are the disadvantages of cursors? : Sql server database administration

1081


How to choose all records from the table?

1102


What is the fastest way to permanently delete a 1 million row table named customers?

1326


How many types of cursor type are there?

1164


Explain how many normalization forms?

1077


What are the new features of sql server 2008 r2 reporting service?

212


How to read data in a table with "select" statements?

1028


How do I view a procedure in sql server?

1036


What are points to remember while using the fillfactor argument?

1018


How we can compare two database data?

996