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...

Write a query to delete duplicate records in SQL SERVER

Answer Posted / chandran

There is a table like this: tablename: example


Name Age
chandran 23
ranjith 24
chandran 23

In this table the name:chandran and age:23 are the
duplicate records .so we need to delete this using this
sql statements


delete from example group by name,age having count>1

Is This Answer Correct ?    37 Yes 107 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance

1966


Define self join?

1035


Explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

1170


What is the web service used for reporting services?

123


Do you know what is blocking?

967


How to change parameter value inside the report?

167


How can you insert values in multiple rows using one Insert statement?

1103


What are the new features introduced in SQL Server 2000? What changed between the previous version of SQL Server and the current version?

2367


1.how to find the dead lock in sql server? 2.How to fine the memory leaks in sql server? 3.suppose transaction log file increasing what action will take ?

2027


How many replicas are maintained for each sql azure db?

124


Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?

891


What is coalesce and check constraint in sql server?

1123


What is star, snowflake and star flake schema? : sql server analysis services, ssas

1164


Explain differences between web edition and business edition?

119


When would you use sql joins?

965