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 rows in sql server2005

Answer Posted / surendra pal singh

delete from tablename where empname in (select empname from table name group by empname having empid>1)

where empname and empid are the columns of the table.
definately it will work

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql server query analyzer?

1096


Explain something about security and SQL Azure?

134


What is Sqlpaging in SqlServer 2005 ?

1115


Write an sql query for deleting duplicate rows?

1036


How to change server name in sql server?

1250


Can a rule be bound to any column of any data type?

1024


Explain sql server authentication modes?

1185


What do you understand by replication in sql server? Mention the different types of replication in sql server.

992


You have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation?

952


what's new in sql server 2016?

1003


Does partitioning help performance?

994


What is molap and its advantage? : sql server analysis services, ssas

1033


What is the difference between executequery () and executeupdate ()?

1109


What is exporting utility?

1086


What is a collation?

1131