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
How to get the definition of a trigger back?
i have made a project i vb.net n created a .exe of it after installing it in to any pc, the database (sql express) is not geting accesed i.e the aplication cuts the link of the database, so plz help in this matter.
tell me what are the steps you will take to improve performance of a poor performing query? : Sql server database administration
If we delete pack Spec what will be the status of pack Body ?
How can I track the changes or identify the latest insert-update-delete from a table?
How do I manually uninstall an instance of sql server 2016?
What is named calculation? : sql server analysis services, ssas
What are the different index configurations a table can have?
Is it possible to have clustered index on separate drive from original table location?
What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?
How to apply cascading referential integrity in place of triggers?
How many types of functions are there in sql server?
What are the functions in sql server?
How you can get the list of largest tables in a database?
Tell me what is use of except clause? How it differs from not in clause?