find out the second highest salary?
Answer Posted / yaseen syed
select *
from
(select empno,ename,sal,rank() over(order by sal desc)
ranking from emp)
where ranking=2;
and u can find the nth highest sal by replacing 2 by your
number
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Explain table?
What is a schema in oracle?
How is it different from a normal table?
What is meant by raw datatype?
what is insert all statement in sql
What is the disadvantage of User defind function?
Why should I use oracle database?
Select all the employees who were hired in last 2 years and who works in dept where max managers are working.
What is the difference between sharding and replication?
How do we display rows from the table without duplicates?
State the various uses of dbcc command?
What are the different types of failures that occur in Oracle database?
What happens if recursive calls get out of control?
How would you change old and new values in an insert, delete and update triggers?
hey friends, What are the steps I can do to transfer the database from Microsoft Access 2003 to oracle10g (or SQL) Best regards