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

DELETE FROM EMP WHERE ROWID NOT IN(SELECT MIN(ROWID)FROM
EMP GROUP BY EMPID);

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the limitations of sql express?

1071


what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql

953


Can ddl statements be used in pl/sql?

1145


What is offset in sql query?

1121


Can we insert data into view?

904


how to shutdown mysql server? : Sql dba

1103


Is sql microsoft?

1058


Why function is used in sql?

951


Why partition by is used in sql?

1043


What does the base_object_type column shows in the user.triggers data dictionary view?

1052


How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?

1438


Why is partition used in sql?

1124


How do you break a loop in pl sql?

1050


List the various privileges that a user can grant to another user?

1043


How long does it take to learn pl sql?

1062