find out the third highest salary?

Answer Posted / vishawjeet saini

SELECT MIN(sal) FROM emp WHERE
sal IN (select sal from emp order by sal desc limit 3)

Its works on almost databases including postgres.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the oracle differences between nvl and coalesce

518


What is tns service name?

626


An automatic job running via DBMS_JOB has failedKnowing only that its failed, how do you approach troubleshooting this issue?

1626


nw i'm doing MBA system and planning to do oracle,database management.tell me that whether it is useful r not?.refer any course for my carrier pls

1745


Why do you create or replace procedures rather that drop and recreate.

549






How to retrieve values from data fields in record variables?

572


Explain rename?

556


What are the parameters that we can pass through a stored procedure?

559


Explain the use of grant option in exp command.

586


Explain temporal data types in oracle

613


How does one get the view definition of fixed views/tables?

606


What are the arithmetic operations?

592


How would you change old and new values in an insert, delete and update triggers?

545


How to define a specific record type?

624


How to run the anonymous block again?

597