how to find the second highest salary from emp table?

Answer Posted / chiguru&

SELECT MAX(SALARY) FROM EMPLOYEE WHERE SALARY NOT IN
(SELECT MAX(SALARY) FROM EMPLOYEE)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you declare a constant?

523


What sql database should I use?

547


Can a foreign key be null?

586


What is the difference between nested table and varray?

516


What is the purpose of design view?

522






What is a heap in sql?

526


Explain what is rdbms?

580


What does pl sql developer do?

504


what is column? : Sql dba

568


Explain the rollback statement?

572


What is meant by user defined function?

579


what is top in tsql? : Transact sql

539


Can procedure in package be overloaded?

604


What is the difference between explicit and implicit cursors in oracle?

511


How do you update sql?

519