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

Does sql server use java?

994


Recommend an approach to ensuring that all changes in the remote databases synchronize with the SQL Azure database?

128


what are the core components of SSRS?

121


Why I am getting "the microsoft .net framework 2.0 in not installed" message?

914


What are the drawbacks of reporting in ssrs?

141


What is log in sql server?

1075


How do I completely remove sql server instance?

1023


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?

948


What is difference between primary key and foreign key?

834


Why I am getting this error when renaming a database in ms sql server?

987


How do I find the size of a sql server database?

876


How to disable triggers using "disable trigger"?

1000


What is the maximum size of column in sql server?

844


What is difference between clustered and non clustered index?

919


How to update muliple row in single query?

999