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

Who developed sql server?

874


When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?

1049


What are the methods used to protect against sql injection attack?

997


What is 1nf 2nf and 3nf?

844


Is candidate a key?

888


What do you understand by recursive stored procedures?

937


What factors you will consider calculating the storage requirement for that view?

894


How can a user-defined datatype be created?

932


What is sql or structured query language?

1085


How to connect php with different port numbers?

1001


How do we synchronize On-Premise SQL server with SQL Azure?

120


hi i am working as a testengineer , so i want to no the backend data base connection can any one tell mwe in detail

2152


What are the different types of normalization?

1085


what is the information that can be stored inside a bit column? : Sql server database administration

901


Can we insert data into view sql server?

882