how to find nth highest salary
Answer Posted / harshal
Below query is written assuming table "employee" has a column called "salary".
select salary from (select salary from (select distinct(salary) from employee order by salary desc)where rownum<n) order by salary asc where rownum<1;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we use where clause with group by?
what is the sql equivaent of the dataset relation object ?
What languages bi uses to achieve the goal?
What is field in algebra?
What is key set driven?
What are different type of Collation Sensitivity?
Name 3 of the features that the sql server built-in function loginproperty performs on standard logins? : sql server security
What is the usage of sign function?
What is meant by indexing?
What will be the maximum number of index per table?
What is sql server agent and what are the two modes of authentication in sql server?
Can we add our custom code in ssis?
ow to bring suspect mode datbase online from scratch
What is an index in a database?
Explain what is the difference between a local and a global temporary table?