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

Delete duplicate records from the table?(Table must have
unique id)

Answer Posted / kk

DELETE
FROM MyTable
WHERE ID NOT IN
(
SELECT MAX(ID)
FROM MyTable
GROUP BY DuplicateColumn1, DuplicateColumn2, DuplicateColumn3)

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the categories of stored procedure i.e. System stored procedure, local stored procedure, temporary stored procedure, extended stored procedure, remote stored procedure?

996


How many types of dimensions are there and what are they? : sql server analysis services, ssas

1034


What is a View ? Can we insert, Update and delete a view?

945


What are alternate keys?

943


What are the drawbacks of reporting in ssrs?

145


How can we delete a table in sql server?

930


How to integrate the ssrs reports in application?

943


Do you know hot add cpu in sql server 2008?

907


How do I install only the client tools of sql server 2000?

1001


What is store procedure? When do you use?

881


Why use view instead of a table?

894


What is advantage data architect?

873


How to use linked server?

1105


What are the benefits of normalization?

1054


What is an identity?

943