How to Select second Maximum salary in a Table ?

Answer Posted / guest

select max(sal) from Table
where sal not in(select max(sal) from Table);

Is This Answer Correct ?    20 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What privilege is needed for a user to insert rows to tables in another schema?

777


How to download oracle database 10g xe?

772


when we are importing items in inventory, showing errors, Oracle support suggested us for running scripts & also suggested if we run scripts, iprocurement applicaation if is there it will show shared and if we go in future for iprocurement, it wont work. So kinldy suggest any functional solution.

1685


How to count duplicated values in a column in oracle?

763


can u plz provide me oca sql dumps please i need them

1674


What is BBED in Oracle?

893


How to execute a stored procedure in oracle?

815


What is a sub query? What are its various types?

784


What is meant by an index?

793


How remove data files before opening a database?

757


What is user managed backup in Oracle?

817


What is raw datatype?

819


What is an oracle tablespace?

775


What is columnar storage what is the advantage?

722


Is there any function in oracle similar like group_concat of mysql?

790