Write a query to find second highest salary of an employee.
Answer Posted / gyana ranjan behera
select ename,sal.rn from(select ename,sal,rownum rn from(select ename,sal from emp order by sal desc))where rn=2;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What schema means?
Why sql query is slow?
What are the most important ddl statements in sql?
What are the benefits of pl/sql packages?
What is flag in sql?
What is a left inner join?
How to change sql*plus system settings?
What are the advantages of normalization?
What is faster join or subquery?
What is the use of sqlerrd 3?
List the different type of joins?
Can we use ddl statements in stored procedure?
How to set up sql*plus output format in oracle?
How do I partition a table in sql?
what is innodb? : Sql dba