How to delete the duplicate records in a table using sql
server

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define a managed code? : Dot net architecture

716


What does this do? Gacutil /l | find /i "corillian"

825


how to delete the record using data reader

2140


how to make and display a form without title bar?

1689


What are the options provived by vss to the user? how it will help us while delevoping application?

2002


Explain how to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile

717


hi, kindly send WWF(.net 3.5) pdf notes to my id. thanx in advance, chays

2125


What is the mesi? : Dot net architecture

752


The maximum report processing jobs limit configured by your system administrator has been reached.How I can Solve this problem when i using crystal report to load from my application.

14596


Difference between throw exception and rethrowing ?

1875


Explain difference between machine config vs. Web config? : .NET Architecture

757


State the different levels of exceptional safety?

780


inprocess vs out process session state : Dot net architecture

739


Define cache coherency and how is it eliminated? : Dot net architecture

746


What actually happes when you add a something to arraylistcollection ?

701