how to find nth highest salary
Answer Posted / anonymous
select min(salary) from(
select salary from test
order by salary desc
)
where rownum<4
For ORACLE 8i,9i,10g
select distinct salary from
(select salary,
dense_rank() OVER (PARTITION BY empname ORDER BY salary
desc) rank
from test) where rank=7
;
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain the dirty pages?
What are translations and its use? : sql server analysis services, ssas
Explain system views?
What is a full text index?
What is the index requirement in SQL Azure?
What is dirty page?
Explain the xml support sql server extends?
Do you know what are the restrictions that views have to follow?
How to create a large table with random data for index testing in ms sql server?
How to create prepared statements using odbc_prepare()?
What are click through reports?
How to find table changes in sql server?
What is a periodical index?
What is a scheduled job or what is a scheduled task?
Can one drop a column from a table?