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

Answer Posted / danny

SELECT min( sal )
FROM emp
WHERE sal
IN (

SELECT DISTINCT sal
FROM emp
ORDER BY sal DESC
LIMIT 0 , 3
)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?

665


What is normalization in sql?

529


What is union?

651


What are the indexing methods?

577


What are the different types of tables in sql?

487






Can we call dml statement in function?

542


What is the starting oracle error number?

569


What are synonyms in sql?

534


What is a sql profiler?

592


How long will it take to learn pl sql?

525


How to sort the rows in sql.

603


what is not null constraint? : Sql dba

551


Is sql a microsoft product?

498


How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?

906


what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba

558