how to find the second highest salary from emp table?

Answer Posted / kishor dange

select max(sal) from table_name where sal<(select max(sal)
from table_name)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is compilation error in pl sql?

509


What do you understand by pl/sql cursors?

554


Is it possible to include an insert statement on the same table to which the trigger is assigned?

564


How many triggers can be applied on a table?

515


Do ddl statements need commit?

540






What is the difference between unique and primary key constraints?

588


what are date and time intervals? : Sql dba

567


How to read xml file in oracle pl sql?

511


How does postgresql compare to mysql?

576


Why does sql need a server?

566


What is denormalization in a database?

593


Which data dictionary views have the information on the triggers that are available in the database?

756


What does joining a thread mean?

550


how to convert numeric values to character strings? : Sql dba

571


What is a left join?

516