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
What do you understand by intent locks?
what is datawarehouse?
What is catalog views?
Where the sql logs gets stored?
What is the use of keyword with encryption. Create a store procedure with encryption?
Explain what is analysis service repository?
Define full outer join in sql server joins?
What is an indice?
What do you know about normalization and de- normalization?
How you can find out if an index is useful to the optimizer?
What are transactions and its controls?
What is a non-clustered index?
explain extended properties
What is left outer join in sql server joins?
plss anybody specify tha constrian management system in dbms