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

What are sql objects?

734


What is scope and visibility in PL/SQL?

767


What are the different datatypes available in PL/SQL?

750


How do you write a complex sql query?

774


How delete all data from table in sql?

750






What are the parts of a basic sql query?

719


what are rollup and cube in t-sql? : Transact sql

817


What is the size of partition table?

736


Can we create index on primary key?

712


What is a file delimiter?

739


What is the usage of distinct keyword?

810


What does count (*) do in sql?

735


Why stored procedures are faster than query?

757


Does sql profiler affect performance?

732


what are set operators in sql? : Sql dba

721