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
What is a sql select statement?
what are string data types? : Sql dba
explain mysql aggregate functions. : Sql dba
What is trigger types in sql?
Which sql statement is used to delete data from a database?
Are views faster than queries?
How do I filter in sql profiler?
what is the use of double ampersand (&&) in sql queries?
What do you mean by table in sql?
What is sql lookup?
Differentiate pl/sql and sql?
Can you skip header records while loading? : aql loader
Difference between truncate, delete and drop commands?
Are dml statements autocommit?
Does mysql_real_escape_string prevent sql injection?