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

Query for second maximum salary in each in each department

Answer Posted / nancy singhal

select max(salary) from emp where salary in(select salary
from emp where salary not in(select max(salary) from emp));

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any restriction on the use of union in embedded sql?

1157


What is sap sql anywhere?

1079


How do I view a procedure in sql?

973


Show code of a cursor for loop.

1054


What are sql built in functions?

937


Which are sql * plus commands?

1130


What is scope and visibility in PL/SQL?

1204


What is rownum?

982


Who developed sql?

1048


What is meant by temporal data?

969


How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1193


What is normalization in a database?

1159


What is query execution plan in sql?

1188


What is a left join?

954


What does varchar include?

951