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

Answer Posted / vamana murthy

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

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to delete a package?

581


what is a view? : Sql dba

638


What is write ahead logging in sql server?

564


what are aggregate and scalar functions? : Sql dba

555


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

599






What is dense_rank?

540


what are the performance and scalability characteristics of mysql? : Sql dba

534


What is dba in sql? : SQL DBA

537


Which is faster truncate or drop?

564


what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba

554


Can ddl statements be used in pl/sql?

598


What is the difference between the conventional and direct path loader? : aql loader

654


What is pl sql record in oracle?

567


What is spool?

597


What is clause?

613