Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / sanjib b
select last_name,salary from employees where salary =
(select max(salary) from employees
where salary <> (select max(salary) from employees))
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba
What is sql key?
What is duration in sql profiler trace?
How to avoid duplicate records in a query?
What is consistency?
What is use of package in pl sql?
Are left and right joins the same?
how to get a list of indexes of an existing table? : Sql dba
What is db journal file?
The in operator may be used if you know the exact value you want to return for at least one of the columns.
Explain unique key in sql.
Explain what is a column in a table?
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql
how do you tune the slow running queries in oracle db , explain the methodology
Can we rollback delete command?