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 / arif jameel

ADD a new identity_column (1,1) on <table>
by

alter table <table_name>
add <Identity_column> int identity(1,1)

delete from <table> where <identity_Column> in
(select max(<identity_Column>) from <table>
group by any <table_column_name>)

drop <identity_column>

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to identify current user in ssrs report?

401


Tell me what is a linked server?

1034


What are the lambda triggers?

893


How to insert new line characters into strings?

982


What does null mean?

980


List some case manipulation functions in sql?

1019


What is the purpose of floor function?

1027


How do I start sql server?

963


What do you mean by acid?

983


How to delete multiple rows with one delete statement in ms sql server?

1000


How do I perform an unattended install of sql server 2000?

1078


How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?

169


How to use copy and concatenate commands in SQL?

1138


What are pessimistic lock and optimistic lock?

1064


What is a trigger in sql server?

1161