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

Why use “pivot” in sql server?

1173


How can sql injection be stopped? : sql server security

1099


What is raid? : SQL Server Architecture

1223


Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?

1250


How to modify the underlying query of an existing view?

1027


What is the benefit of normalization?

1129


Explain try...catch with sql server?

1068


What is report server project?

155


Can select statements be used on views in ms sql server?

1104


What are constraints?

1058


How to create view in stored procedure sql server?

1053


What is primary key and example?

994


what is the Ticketing tool used in Wipro technologies at Bangalore...???

8201


What is scd (slowly changing dimension)? : sql server analysis services, ssas

1048


How do I view a stored procedure in sql server query?

978