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

Explain dml and ddl?

552


What has stored procedures in sql?

605


What are the different types of joins in sql?

585


What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql

543


What do you mean by field in sql?

538






What is field delimiter?

639


What is sql*plus?

575


What are the benefits of stored procedures?

538


what is sql? : Sql dba

560


How do I install sql?

524


How do I view tables in mysql?

547


What is the advantage of index in sql?

541


what is a database lock ? : Sql dba

594


How is a PL/SQL code compiled?

675


Can we use insert statement in function?

519