Write a query to delete duplicate records in SQL SERVER
Answer Posted / prakash patel
delete from tbl_test where ID in
(select ID from tbl_test group by ID having count(ID) > 1)
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Why we need sql server?
What is the difference between writing data to mirrored drives versus raid5 drives
How to recompile stored procedure at run time?
Explain transaction isolation levels in sql server?
If we delete pack Spec what will be the status of pack Body ?
What are the types of indexes?
What methods do you follow to protect from sql injection attack?
How to scale out a federation by Sql statement?
How do I perform an unattended install of sql server 2000?
How to return the second 5 rows in ms sql server?
how would you improve etl (extract, transform, load) throughput?
What is cte (common table expression)?
What is cursor in ms sql server?
How to delete all rows with truncate table statement in ms sql server?
What is meant by datasource?