how to find the second highest salary from emp table?

Answer Posted / mona thakur

SELECT *
FROM emp
WHERE salary < (
SELECT max( salary )
FROM emp )
ORDER BY salary DESC
LIMIT 1

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you skip header records while loading? : aql loader

544


What is the max nvarchar size?

522


Explain constraints in sql?

575


How many types of keys are there in sql?

557


Can delete statement be rollbacked?

528






Does db2 use sql?

515


What packages are available to pl/sql developers?

605


Does oracle use sql?

516


What are operators available in sql?

591


Where do we use pl sql?

555


What is the meaning of disabling a trigger?

649


What is the difference between a primary key and a unique key?

558


What are the set operators in sql?

560


What is the difference between microsoft sql and mysql?

512


What is the difference between syntax error and runtime error?

614