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

What happens when the SQL Azure database reaches Max Size?

107


What happens if time-only values are provided as date and time literals?

954


difference between Clustered index and non clustered index ?

936


What are the pre-defined functions in the sql server?

1030


What is data file in computer?

893


What are the acid properties?

946


What are scalar functions?

949


Is the log file is a part of file group?

976


Is port 1433 secure?

931


What is sql server profiler trace data file?

1052


What is a covered index?

893


Why use triggers?

969


List the different index configurations possible for a table?

884


What is the most common trace flags used with sql server?

965


What is the difference between varchar and nvarchar?

898