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

How can we make an if statement within a select statement?

1015


What do you mean by “trigger” in sql?

1085


which command using query analyzer will give you the version of sql server and operating system? : Sql dba

1064


What is sql indexing?

1013


What is mutating table error?

1188


What is the difference between inner join and outer join?

999


Can a table contain multiple foreign key’s?

1000


How do you use join?

947


how is myisam table stored? : Sql dba

1058


How many types of indexes are there in sql?

985


What is the purpose of cursors in pl/sql?

1138


Is json a nosql?

984


How can you save or place your msg in a table?

1003


How do I run sql profiler?

1075


how are mysql timestamps seen to a user? : Sql dba

1139