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

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

Is This Answer Correct ?    12 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a view in sql?

922


It is important form e to get the information from log files of applications executed by the task scheduler? Does sql studio save these log files? : sql server management studio

977


What is the difference between varchar and varchar(max) datatypes?

999


What is difference between cte and view?

854


Explain the difference between function and stored procedure?

896


What are blobs, tables, and Queues? Is SQL is the standard way to query blobs, tables, and queues?

135


How to manipulate data from one table to another table ?

904


How does clustered and non clustered index work?

848


How will you hide an attribute? : sql server analysis services, ssas

891


Explain how does the report manager work in ssrs?

901


What is the meaning of sql server?

934


What is the sql case statement used for?

1032


how to determine the service pack currently installed on sql server? : Sql server database administration

906


Explain the collation?

1043


What is attribute? : sql server analysis services, ssas

977