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

List some advantages and disadvantages of stored procedure?

1063


What is history table in sql server?

1028


What is a natural primary key?

1106


what is a traditional network library for sql servers? : Sql server database administration

1010


You have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation?

952


What are the disadvantages of using the stored procedures?

1184


What are the differences between INNER JOIN, LEFT JOIN and RIGHT JOIN in SQL Server?

1178


Can you get second highest salary from the table?

1006


Do you know what is raid and what are different types of raid configurations? : SQL Server Architecture

1122


What are the disadvantages of merge replication?

1512


How to list all user defined functions in the current database?

1115


Working with TLogs

1895


What are sql servers used for?

1111


Why is replication required on the sql server?

1104


Explain Normalization and DE normalization

1159