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

what are questions asked in TCS for database tester (sqlserver)for 2-3 exp?

5975


What is application role in sql server database security? : sql server security

1119


Explain “row_number()” in sql server with an example?

1055


How to download and install microsoft sql server management studio express?

1092


what is the Ticketing tool used in Wipro technologies at Bangalore...???

8203


Equi join and non equi join is possible with sql server?

1095


What does truncate do?

993


can we have a nested transaction? : Sql server database administration

1190


how you can get the list of largest tables in a database? : Sql server administration

1100


as a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this? : Sql server administration

1018


What is log in sql server?

1202


what authentication modes does sql server support? : Sql server database administration

1183


How can change procedure in sql server?

1128


What is the difference between clustered index and primary key?

970


What are recommended options to be used while using db mirroring? : sql server database administration

1224