Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

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

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

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 to delete the duplicate records in a table using sql server..

Answer / priya

use distinct.it removes the duplicate rows

Is This Answer Correct ?    0 Yes 0 No

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

Answer / ranjitha

Add Primary Key to the table.

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More Dot Net AllOther Interview Questions

What are the main Tools to develop .Net Application?

0 Answers   HCL,


Difference between throw exception and rethrowing ?

0 Answers  


What actually happes when you add a something to arraylistcollection ?

0 Answers  


Which tool you will use to deploy a windows service

1 Answers   Fulcrum Logic,


How does .net remoting work?

0 Answers  


How does an appdomain get created?

0 Answers  


Is dim fs as filestreamobject is a managed code? : Dot net architecture

0 Answers  


how can u manage sessions ?

3 Answers   Ness Technologies,


Explain different pipelining hazards and how are they eliminated? : Dot net architecture

0 Answers  


Explain the difference between inprocess vs out process session state : Dot net architecture

0 Answers  


what is ado.net

8 Answers   BirlaSoft, HCL,


Explain cache? : .NET Architecture

0 Answers  


Categories