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...

Delete the emps whose salaries are lowest sals of their own
dept.

Answer Posted / venkyhulk1

delete from emp where eno in
(SELECT
eno
FROM
(select eno, rank() over ( partition by dno order by
salary) rank , salary from emp) e
WHERE
e.rank=1)


vgupalli@gmail.com

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1103


Is sql easier than java?

1069


what is try_catch block in procedure

1813


what is the difference between blob and text? : Sql dba

1064


What are local and global Indexes and where they are useful.

1499


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

1058


What is native sql query?

1076


Can we use ddl statements in stored procedure?

1196


How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?

1208


Explain what is an index?

1106


How do I truncate a word?

1163


What are different functions in sql?

1000


Is sql workbench free?

1047


Explain the uses of control file.

1103


What is a unique key?

1109