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

How To delete duplicate record from a particular table?

Answer Posted / srinivasan

WITH CTE AS
(
SELECT * ,ROW_NUMBER() OVER (PARTITION BY ID,NAME
ORDER BY ID DESC) AS RNUM FROM TABLE A
)

DELETE CTE WHERE RNUM >1

IF U HAVE ANY MORE DOUBTS
MAIL ME MCAVASAN@GMAIL.COM

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are statistics, under what circumstances they go out of date, how do you update them? : Sql server database administration

999


What is a print index?

935


What is the data tier application?

169


Can you explain various data region available in ssrs with their use?

1022


Detail about query optimizer?

1159


In which format does an image save in SQL Server database ?

1057


What is use of dbcc commands?

1123


What is the New in SQL server 2008?

1017


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

1030


Where sql server user names and passwords are stored in sql server? : sql server database administration

1102


What objects does the fn_my_permissions function reports on? : sql server security

1084


Why use stored procedures in sql server?

1063


What are translations and its use? : sql server analysis services, ssas

1082


How much memory that we are using in Logshipping Concept?

1844


Explain multiserver query

1113