How to delete the duplicate records in a table using sql
server
Answers were Sorted based on User's Feedback
Answer / mohamed idhris
SET ROWCOUNT 1
DELETE FROM tbl_name WHERE field_name= 'field_value'
SET ROWCOUNT 0
the above query will delete the duplicate row
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / rakesh pattajoshi
delete from tbl where id not in(select max(id) from tbl group by name)
| Is This Answer Correct ? | 0 Yes | 0 No |
How will you do windows authentication and what is the namespace?
difference between Response.write,server.transfer and also which one is used when ?
What is Com Callable wrapper?when it will created?
Explain about continuable exceptions?
Can you explain update progress control?
WHAT IS COMPUTER
So what exactly is the configuration file for then?
Which tool you will use to deploy a windows service
How can i create only one instance of class and thus doesn't allow creating any more instances?
what is a tool tip
What is the use of delegates
How do I write to the application configuration file at runtime?