how to find the second highest salary from emp table?

Answer Posted / abhay

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

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is file based approach?

487


What is cursor in pl sql?

574


What is the purpose of design view?

522


What are sql functions? Describe the different types of sql functions?

552


What are the two characteristics of a primary key?

487






What sql does db2 use?

540


What are tables and fields in the database?

552


What is a database? Explain

593


Why do we need a foreign key?

546


What is a join?

621


Explain the purpose of %type and %rowtype data types with the example?

549


What are the syntax and use of the coalesce function?

551


explain the options of myisamchk to improve the performance of a table. : Sql dba

545


how do you control the max size of a heap table? : Sql dba

534


Define commit, rollback and savepoint?

571