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 / sujit kumar suman,new delhi

DELETE DUPLICATE RECORDS FROM TABLE IN SQL SERVER:

DELETE FROM TABLE1
WHERE
ID NOT IN
(SELECT MAX(ID) FROM TABLE1
GROUP BY NAME)

WHERE ID IS IDENTITY FIELD AND NAME IS DUPLICATE FIELD

TRY THIS QUERRY AND ENJOY.......

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is filter index?

951


What is a benefit of using an after insert trigger over using a before insert trigger?

985


What are data files?

1041


What is normalization 1nf 2nf 3nf?

1060


What do you mean by data integrity?

1074


How to create a simple stored procedure in ms sql server?

1028


Explain what you mean by 3 tier architecture.

1077


Indexes are updated automatically is the full-text index also updated automatically?

1029


Explain the advantages of merge replication?

952


Can you explain powershell included in sql server 2008?

939


How does clustered and non clustered index work?

924


What are the different types of sub-queries?

1043


What is policy based management (pbm)? : sql server database administration

988


What is a join in sql?

1093


can you instantiate a com object by using t-sql? : Sql server database administration

1002