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

Can we call future method from trigger?

881


How to join two tables in a single query in ms sql server?

943


What is sharding?

114


What are the character string functions supported by sql server 2005?

937


What is apply operator in sql?

961


How to verify the port number of the sql server?

1042


What is a collation?

1038


What is the maximum size of a row in sql server?

908


how can u get last observation in an unknown dataset ?

2388


What does it mean to normalize a database and why would you do it?

940


Explain transaction server distributed transaction?

921


In which sql server version report builder introduced?

142


What is shared lock?

835


If the job running very slow what is the action you do

1828


What is the use of group by clause?

902