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...

Is it possible to delete duplicate rows in a table without
using a temporary table ?

Answer Posted / krishnaraj p n

Can be done in a simple way.

DELETE FROM <TABLE NAME > WHERE <COLUMN NAME >IN
(
SELECT <COLUMN NAME> FROM <TABLE NAME >
GROUP BY <COLUMN NAME>
HAVING COUNT(<COLUMN NAME>) > 1
)

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I delete event logs?

924


What is the security model used in sql server 2005?

1010


How to recompile stored procedure at run time?

1076


How to copy the tables, schema and views from one sql server to another?

1047


Which are the two editions in which SQL Azure database available?

119


How do I create a partition table in sql server?

1124


Mention what are the different types of ssrs reports?

151


What is de-normalization and what are some of the examples of it?

976


How do database indexes work?

1010


What are the basic features of a trigger in ms sql server?

1193


How to change parameter value inside the report?

164


How to change a login name in ms sql server?

1089


what is the difference between Delete and Truncate command in SQL

1147


What program is used to store the data source file?

961


What the difference between UNION and UNIONALL?

1040