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 the difference between primary key and unique key? : Sql dba

518


How do you update f as m and m as f from the below table testtable?

1060


What is the default isolation level in sql server? : Transact sql

560


Explain what is a database?

643


What is the difference between sql and isql*plus?

507






what is a scheduled jobs or what is a scheduled tasks? : Sql dba

545


What are conditional predicates?

579


How do you exit in sql?

582


Which is faster joins or subqueries?

547


What are tuples in sql?

557


Show code of a cursor for loop.

576


How do I run sql profiler?

577


What is difference between sql and mysql?

523


How do I trace sql profiler?

489


Why cannot I use bind variables in ddl/scl statements in dynamic sql?

658