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

delete from emp where rowid not in (select max(rowid) from
emp group by empno)

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between having clause and where clause?

1067


What is a record in a database?

1068


What is the difference between numeric and autonumber?

1004


What is out parameter used for eventhough return statement can also be used in pl/sql?

1085


Can one improve the performance of sql*loader? : aql loader

1052


What are analytical functions in sql?

1037


Is left join inner or outer?

1024


What is crud diagram?

953


What is the difference between Union and Union all. Which is faster.

1405


What is sql server and ase?

1031


Define overloaded procedure?

1088


Why should I use postgresql?

1023


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

1017


What are aggregate functions in sql?

1166


what is table? : Sql dba

1069