Home > Software > Databases > PL-SQL
Interview Questions   Tutorials   Discussions   Programs   Videos   

PL-SQL - How to find the second highest salary from emp table?

    Next Topic



356
views
asked mar February 12, 2015 01:04 AM  

How to find the second highest salary from emp table?


           

2 Answers



 
answered By   0  

Index is a method used for faster retrieval of records.different types of indexes are 1.primary key index 2.unique index 3.bitmap index 4.hash index 5.function based index 6.B-tree index(default index created) on table. 7.Virtual index(which do not show entry in DBA_segment).

flag   
   add comment

 
answered By   0  

SELECT MAX(SAL) FROM EMP WHERE SAL < ( SELECT MAX(SAL) FROM EMP;

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert