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 should be the fill factor for indexes created on tables? : sql server database administration

1129


Where cross join is used?

948


What are the transaction properties?

1001


When we should use and scope of @@identity?

992


What is query parameter in ssrs?

160


Write an SQL query to obtain the 2nd highest salary.

1062


How does SSIS(Sql Server Integration Services) deffer from DTS(Data Transformation Services)?

1194


In what three ways is the return statement used in a stored procedure?

996


can you implement data mining in SSRS?

146


What is the main difference between ‘between’ and ‘in’ condition operators?

1174


Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?

998


Differentiate between delete and truncate.

1054


What is the sql server 2000 version number?

1069


what are the different types of replication you can set up in sql server? : Sql server database administration

1014


Can you roll back the ddl statement in a trigger?

954