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

What is cdc in sql server?

999


What is the stuff?

1001


What is merge replication?

1105


is it important for a database administrator to understand the operating system and file access? : Sql server administration

1029


How to execute a sql statement using mssql_query()?

1051


Explain tables in SQL Azure?

120


What are page splits? : SQL Server Architecture

989


Name the different type of indexes in sql?

965


How can you find out how many rows returned in a cursor?

1029


What are examples of triggers?

1088


How do you identify a foreign key?

1024


What is row-level compre?

1002


What does COMMIT command do?

1065


What are different types of schemas?

947


What are 3 ways to get a count of the number of records in a table?

1078