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

Can a database be shrunk with users active?

1188


What are the options which must be set to allow the usage of optimistic models?

1020


Is sql different from sql server?

1155


Do you know nested transaction?

994


How should i optimize the time for execution of stored procedure having single input and many output from the different tables?

1950


How to use clusters?

1008


Define msdb database?

1074


What is cte (common table expression)?

1080


You want to implement the one-to-many relationship while designing tables. How would you do it?

994


How to remove duplicate rows from table except one?

1058


what are the different types of SSRS reports?

160


What are the types of sql server?

1095


What is built-in/administrator?

1071


List some of the rules that apply to creating and using a ‘view’

920


What are the differences between DDL, DML and DCL in SQL?

1277