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 COM with example?
data types used in validation control
What is the use of TPL DATAFLOW?
where should I put this information then?
So what exactly is the configuration file for then?
Explain the types of memory management? : .NET Architecture
What's new in the .net 2.0 class library?
What is WPF and WCF?
Tell me .net mobile emulators? : Microsoft dot net mobile
what is class and object explain with example?
which would be the best to use inproc,outproc or sql server
What is .net mobile utility controls. Explain with an example? : Microsoft dot net mobile