Find out the 3rd highest salary?

Answer Posted / abhijt shinde

select MIN(salary) from Employees
where salary IN
(Select Top 3 salary from Employees order by salary desc)

Select Top 1 salary from Employees where salary
Not IN(select Top 1 salary from Employees order by salary Desc)
order by salary Desc

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is primary key and foreign key?

534


Can we use ddl statements in stored procedure?

699


How do I restart sql?

526


What is package in pl sql?

579


Why schema is used in sql?

517






What are the properties of a transaction?

566


Write a query to display the current date in sql?

516


What are sql built in functions?

510


List the different type of joins?

571


How to run pl/sql statements in sql*plus?

594


Is sql harder than python?

612


Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?

722


How do you go back in sql?

535


What is a full join sql?

593


What is a procedure in pl sql?

550