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 an execution plan? How would you view the execution plan?

1079


Can You Use A Stored Procedure To Provide Data To An Ssrs Report?

145


Is ssrs support other database except ms sql server?

142


What are the steps you will take to improve the performance of a poor performing query?

979


How to check if stored procedure is running in sql server?

1064


Does partitioning help performance?

939


Why would you use sql agent?

1271


Explain what is log shipping?

1140


What is indexed view? How to create it?

1014


Write query to return all rows sql?

1060


Can we insert data if clustered index is disabled?

943


What is a raid and what are different types of raid configurations?

1267


How do I find the transaction log size in sql server?

964


What are the transaction properties?

1022


What is Lock table in SQL?

1475