how to check the 3rd max salary from an employee table?

Answer Posted / b.v.siva kumar

Use this for SQL Server:

select top 1 salary from emp where salary in (select
distinct top 3 salary from emp order by salary desc) order
by salary

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is bulk collect in pl sql?

536


Why do we use procedures in pl sql?

527


What is a null value?

663


What is anonymous block in sql?

642


What are commit, rollback, and savepoint?

577






How to know the last executed procedure?

594


What is meant by user defined function?

589


what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba

550


What is the sql case statement?

583


What is recursive join in sql?

556


what are the different type of sql's statements ? : Sql dba

524


Does sql require a server?

532


what are the system privileges that are required by a schema owner (user) to create a trigger on a table?

627


What is the purpose of design view?

531


What is break?

626