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

in tabase table having a column in it empname field is
there which having 5 duplicate values is there i want
deleted all the duplicates i want showing only one name
only.

Answer Posted / karna

delete from emp where empid not in(select max(empid) from
emp group by empname having count(*)>=1)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is inner join in sql server joins?

1036


What is a periodical index?

928


Why I have to use stored procedures?

1050


What is SQL Azure Federations?

112


How to turn off warning messages during php execution?

1045


Explain use of expression builder.

1025


What is sql server used for?

1053


What is Federation and Federation Member?

92


How to return the date part only from a sql server datetime datatype?

1103


How can you know if the row fetched from cursor is still valid in underlying table?

998


What do you understand by replication in sql server? Mention the different types of replication in sql server.

947


How to count rows with the count(*) function in ms sql server?

1017


What are information schema views?

988


If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?

1109


Which tools are available to manage SQL Azure databases and servers?

115