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 language is sql server written in?

1020


Explain syntax for viewing trigger?

912


What to perform pattern match with the like operator?

873


Differentiate sql server reporting services vs. Crystal reports?

200


What is built-in/administrator?

996


How to list all field names in the result set using mssql_field_name()?

906


how you can move data or databases between servers and databases in sql server? : Sql server administration

952


What is query parameter in ssrs?

160


How do I find my localdb version?

975


What are secondary xml indexes?

1018


How you can change a cross join into an inner join?

956


Explain about Normalization?

1053


Explain the properties of the relational tables?

986


How to stop log file growing too big?

1008


What's the information that can be stored inside a bit column?

989