Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / lakshminarayana reddy

select rownum,empno,ename,job,sal from emp(select
rownum,empno,ename,job,sal from emp order by sal desc) grop
by rownum,empno,ename,job,sal having rownum=2;

Is This Answer Correct ?    7 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the location of pre_defined_functions.

646


What are the disadvantages of not performing database normalization?

597


Will truncate release space?

519


How to find 3rd highest salary of an employee from the employee table in sql?

571


How can you know that statistics should be updated?

612






Can we insert in sql function?

551


What is sql deadlock?

569


What is a constraint?

570


Which sorts rows in sql?

587


What is database migration?

521


How bulk collect improves performance?

574


How much ram can sql express use?

515


What is rowid in sql?

513


What is a sql*loader control file?

622


explain mysql aggregate functions. : Sql dba

554