Write a query to find second highest salary of an employee.

Answer Posted / senorita

select ename,salary from (select rownum,ename,salary from
emp
order by desc) where rownum=2;

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a boolean in sql?

708


Does sql backup shrink transaction log?

736


What does := mean in pl sql?

757


What is cte?

741


what is not null constraint? : Sql dba

725






how to check server status with 'mysqladmin'? : Sql dba

784


What are the two characteristics of a primary key?

669


what are the type of locks ? : Sql dba

722


What are the rules to be applied to nulls whilst doing comparisons?

988


How do I order columns in sql?

703


Which are sql * plus commands?

714


What do you mean by rowid?

711


What are the types of functions in sql?

746


How many developers work on postgresql?

735


How do I partition a table in sql?

735