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 trigger means?

927


What are the types pl/sql code blocks?

1067


Why truncate is faster than delete?

1053


What are the different types of constraints?

1072


what is the difference between where clause and having clause? : Sql dba

947


how to rename an existing column in a table? : Sql dba

959


What makes a good primary key?

980


Which are the different character-manipulation functions in sql?

987


What is dense_rank?

879


how to dump a table to a file with 'mysqldump'? : Sql dba

982


How do I truncate a word?

997


Explain what is a database?

1037


Are stored procedures compiled?

871


can sql servers linked to other servers like oracle? : Sql dba

952


how to shut down the server with 'mysqladmin'? : Sql dba

955