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 / ambuj tayal

Yes, it is possible by using in memory table variables on
SQL server 2000 and above.

A table variable can be created and all disticnt values can
be inserted into this table and then deleting all rows from
first table you can insert back disticnt rows to back to
original table. Table variable would automatically be
destroyed whenever bacth execution finishes.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are differences in between sql server 2012 and sql server 2016?

988


Define right outer join in sql server joins?

990


where the connection string store in the database

2028


List out a number of the wants to setup a SQL Server failover cluster?

1012


What are the differences between triggers and stored procedures?

998


How do you know if sql server is running on your local system?

984


Give me any three differences between Truncate and Delete.

1054


How to insert stored procedure result into temporary table?

983


what happens on checkpoint? : Sql server database administration

1027


What are basics of policy management?

1057


What is difference between cte and view?

864


explain different types of backups avaialabe in sql server? : Sql server database administration

931


What is the return type of executeupdate ()?

868


let's assume you have data that resides on sql server 6.5. You have to move it sql server 7.0. How are you going to do it? : Sql server database administration

908


In how many ways you can invoke ssrs reports?

134