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 |
Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure on hardware that converts the ascii value to binary? : .NET Architecture
Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure. : Dot net architecture
What is the purpose of Treeview control?
What is the purpose of hard disk? : Dot net architecture
Explain difference between machine config vs. Web config? : .NET Architecture
Define cache coherency and how is it eliminated? : Dot net architecture
Explain about httpruntime.cach.get(); method?
What is .net mobile automatic paging? : Microsoft dot net mobile
Explain Singleton design pattern in .net
How can a win service developed in .NET be installed or used in Win98?
Explain domestic architecture artifacts? : .NET Architecture
How is the using() pattern useful? What is idisposable?