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

Write a unique difference between a function and a stored procedure.

926


What is not equal in sql?

1012


how to use regular expression in pattern match conditions? : Sql dba

966


How does cross join work in sql?

959


Can we insert data into view?

851


What is the use of function in sql?

1029


Can you select everything, but 1 or 2 fields, without writer's cramp?

934


what is unique key constraint? : Sql dba

993


How many sql statements are used? Define them.

983


Write a query to display the current date in sql?

969


What does t sql mean?

898


Is record in oracle pl sql?

904


Show how functions and procedures are called in a pl/sql block.

1043


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

950


Is progress software supports to ( pl/sql )?

973