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


Please Help Members By Posting Answers For Below Questions

How do you update sql?

523


What is union and union all keyword in sql?

568


How to get each name only once from an employee table?

615


what are the authentication modes in sql server? : Sql dba

538


What is auto increment?

584






What is the difference between syntax error and runtime error?

617


What is oracle sql developer?

610


What is Materialized View? In What Scenario we Use Materialized View?

8541


Give the order of sql select?

616


Explain the structure of pl/sql in brief.

623


How to read xml file in oracle pl sql?

511


how tsql statements can be written and submitted to the database engine? : Transact sql

540


What are the types of keys?

516


write an sql query to find names of employee start with 'a'? : Sql dba

584


How to create your own reports in sql developer?

544