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
What is a system tablespace?
How to create a new oracle data file?
Can we store pictures in the database and if so, how it can be done?
How to create a server parameter file?
How do you bind variables in oracle?
What is a user account in oracle?
Please explain oracle left join with an example?
Explain the use of consistent option in exp command.
How many types of tables supported by oracle?
Explain a private synonyms?
In SAP ECC 6.0 , under DB02 tcode , Tablespace name to be explain stepy step all the col
Explain what are the characteristics of data files?
How to view the data files in the current database?
What is a database table in oracle?
how to use select statement as formal parameter in procedure specification?(someone said that using string) ex:-procedure(a in number,select ename from emp ) i am asking syntax like this?