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

Define synonym?

1179


How to move database physical files in ms sql server?

1035


Explain what are the different index configurations a table can have?

1114


What is use of attribute hierarchy optimized state? : sql server analysis services, ssas

1064


What is page-level compression?

968


What are the different acid properties?

1069


what is the difference between openrowset and openquery?

1090


What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?

914


How to bind a view to the schema of the underlying tables?

1001


Can I save my report as html, excel or word? : sql server management studio

955


What is shrink log file?

898


what is blocking? : Sql server database administration

1046


What are sql azure firewall rules?

106


What are trace flags?

1037


How can you check the level of fragmentation on a table?

1045