How to Select second Maximum salary in a Table ?

Answer Posted / kuldeep singh

select max(sal) from emp where sal not in (select top2 sal from emp order by sal desc)

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which environment variables are absolutely critical in order to run the OUI?

1664


if you ctreate table identity

1850


How many types of tables are there in oracle?

580


How to run create database statement?

579


What are operators in oracle?

532






What do you mean by cdb and pdb in oracle 12c?

641


State the difference between a primary key and foreign key?

518


I just want to maintain data like an employee can belongs to 3 or more departments . We can resolve this by using composite key but it avoids normalization rules. So Can anyone tell me how can I maintain data.

1704


What is the database name in oracle?

537


Name the three major set of files on disk that compose a database in Oracle?

637


hi friends i completed b.com 2004.i have 3y accounting exp. in manufacturing company.now i have completed oracle finance.pls suggest me how will get job in oracle.can i get job in oracle.

1966


What to do if the startbd.bat failed to start the xe instance?

613


what is meant by magic query

1776


How will you identify oracle database software release?

529


Why does oracle 9i treat an empty string as null?

540