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

What is a sql select statement?

1082


what are string data types? : Sql dba

1092


explain mysql aggregate functions. : Sql dba

1028


What is trigger types in sql?

1042


Which sql statement is used to delete data from a database?

1003


Are views faster than queries?

1038


How do I filter in sql profiler?

1048


what is the use of double ampersand (&&) in sql queries?

1226


What do you mean by table in sql?

1045


What is sql lookup?

970


Differentiate pl/sql and sql?

1128


Can you skip header records while loading? : aql loader

1100


Difference between truncate, delete and drop commands?

1141


Are dml statements autocommit?

1092


Does mysql_real_escape_string prevent sql injection?

993