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 |
What is the purpose of Accordian in jquery? Where it can be used?
Explain some of the disadvantages due to microsoft.net?
Navigation controls in ASP.net,explain each control in brief?
What is a virtual memory? : Dot net architecture
How can implement drag and drop using atlas?
Please tell me the .net 2.5 frame work with example
what is polymorphism and advantage ?
Explain the use of virtual, sealed, override, and abstract.
What is .net mobile images control. Explain with an example? : Microsoft dot net mobile
State and explain about microsoft.net?
What does this do? Gacutil /l | find /i "corillian"
how to delete the record using data reader