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 / kumar

Table structure :-

empid empname
1 bala
2 bala
3 bala
4 bala
5 arun
6 arun
7 arun
8 ram
9 ram

Delete from employee where empid
not in (Select min(empid) from employee group by emp
having count(empid)>1)

By
Kumar

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the limitations/drawbacks or ssrs 2008 r2?

140


How do I start sql server agent automatically?

977


Describe how to use the linked server?

1149


What are the differences between user defined functions and stored procedures?

1079


What is user-defined function?

983


What is server-level principal?

122


What is a view and what are its advantages?

1120


Tell me when is the update_statistics command used?

1124


Why we use trigger in sql server with example?

967


Explain foreign key in sql server?

1035


Is it important for a database administrator to understand the operating system and file access?

1005


What are transactions in sql?

1070


What is the process of normalization?

1134


What is database isolation in sql server? : sql server database administration

1118


What are differences in between sql server 2012 and sql server 2016?

1055