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 tuple in sql?

638


define sql delete statement ? : Sql dba

660


What are the types of index in sql?

638


what are local and global variables and their differences? : Sql dba

623


How to start oracle sql developer?

636






What is the use of sql trace?

569


How can we store rows in PL/SQL using array?

766


What packages(if any) has oracle provided for use by developers?

5153


explain normalization concept? : Sql dba

669


How can we optimize a sql query?

664


How do I run a sql trace?

611


Should I use mbr or gpt?

631


What is the difference between nvl function, ifnull function, and isnull function?

688


What is procedure and function in sql?

632


Explain what is sql?

709