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

Answer Posted / akshay

Select ename, eno, sal, rownum
from (select ename, eno, sal from emp order by sal desc)
where rownum = 2;

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain normalization and what are the advantages of it?

518


What is a common use of group by in sql?

594


What is pl sql commands?

560


What is left join in sql?

586


Why do we use function in pl sql?

563






Is sql sequential or random?

543


How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?

650


What is secondary key?

514


What is an escape character in sql?

569


What is nvl?

617


How much does a sql dba make? : SQL DBA

512


What is the max nvarchar size?

525


What are variables in pl sql?

569


How can use stored procedures in sql?

587


How do I run sql?

622