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...

how to delete duplicate rows in sql server2005

Answer Posted / pritesh

By using temporary table, But it will delete exactly
duplicate rows NOT RECOMMANDABLE FOR HUGE TABLE. Query will
be.

SELECT DISTINCT * INTO #A FROM TABLE1

TRUNCATE TABLE TABLE1

INSERT INTO TABLE1
SELECT * FROM #A

Is This Answer Correct ?    30 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we know if any query is retrieving a large amount of data or very little data?

961


What are the differences between stored procedure and the dynamic sql?

1075


Differentiate sql server reporting services vs. Crystal reports?

200


Where sql server user names and passwords are stored in sql server? : sql server database administration

1040


Explain different types of index?

1039


Do you know what is xpath?

1074


What is the data type of time?

958


How to convert character strings into numeric values?

1084


Explain important index characteristics?

1023


how to take backup bcp out for a column in table in sql server?

2093


How does Report Builder support Analysis Services cubes?

153


Can you explain various data region available in ssrs with their use?

968


What is the difference between varchar and nvarchar?

935


Do you know the capabilities of cursors?

1140


How to insert stored procedure result into temporary table?

1010