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
Do you know how to implement service broker?
What samples and sample databases are provided by microsoft?
Can you explain important index characteristics?
Explain temporary table vs table variable by using cursor alternative?
What are types of scd? : sql server analysis services, ssas
How to create dbo table in sql server?
How do I view views in sql server?
List down some advantages of sql stored procedure?
Explain the working of sql privileges?
How to test a dml trigger in ms sql server?
What is meant by indexing?
what is nonclustered index
Is sql server difficult to learn?
Does hive support indexing?
What are relationships and mention different types of relationships in the dbms