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

How do you explain an index number?

529


What is sql in oracle?

622


Which join is like an inner join?

519


What is clustered and nonclustered index in sql?

493


what is a view? : Sql dba

630






How do you modify a trigger?

520


What is cursor in pl sql with examples?

475


How can I delete duplicate rows?

559


Can %notfound return null after a fetch?

581


Should I use mbr or gpt?

534


What is transaction control language (tcl)?

629


What are sql built in functions?

506


What is pl sql in oracle?

573


what are the advantages of using stored procedures? : Sql dba

611


How to Declare Fixed Length String Value In PL SQL

657