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

How to delete database objects with "drop" statements in ms sql server?

1078


Can We Use Data-grids For Our Report In Ssrs?

184


What happens if strings are casted into wrong code pages in ms sql server?

1109


What is a functions and types in sql server?

1083


What are the differences between having and where clause.

962


What is the use of “join” in sql server?

1080


What is the maximum length of an alert name?

999


How can you insert values in multiple rows using one Insert statement?

1089


How would you choose between a clustered and a non-clustered index?

963


What is the purpose of floor function?

1028


Explain timestamp datatype?

959


Explain the truncate command?

971


What are the features of Embedded SQL

1121


What is the usage of the sign function?

1098


How to create an index on an existing table in ms sql server?

975