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

How to delete same emp id in sql query for exmaple in emp
table emp id, empname, emp address. for example emp id =5,
repeated in two times in rows same id how to delete same
empid please any one of the write query send in my id

Answer Posted / rohit kumar

Delete from employee where (empid,empname) notin (select min
(empid),empname from employee group by enmpname);

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does data normalization mean?

947


Define the select into statement.

1046


What is an invalid partition table?

1022


Is sqlite thread safe?

1040


What is the difference between having and a where in sql?

1095


How to place comments in pl/sql?

1149


Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.

1003


What is date functions?

1024


Can we use having without group by in sql?

979


List out the acid properties and explain?

949


Can pl sql procedure have a return statement?

1020


What is the maximum number of triggers, you can apply on a single table?

989


Is nosql faster than sql?

1012


What is the purpose of cursors in pl/sql?

1134


Why cannot I use bind variables in ddl/scl statements in dynamic sql?

1199