find out first highest salary?
Answer Posted / surya
select * from emp where &n-1=(select count(distinct sal)
from emp e where emp.sal<e.sal);
For example:-
If you enter n=1,it will display first highest salary
if you enter n=2,it will display second highest salary
......
if you enter n=nth,it will display nth salary
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Can we convert a date to char in oracle and if so, what would be the syntax?
How to convert dates to characters in oracle?
How to start a specific oracle instance?
Can we write insert statement in function in oracle?
What are the set operators union, union all, minus & intersect meant to do?
What is parameterized cursor in oracle?
How do I connect to oracle?
What do you mean by group by clause?
What are the built-in functions used for sending Parameters to forms ?
What is clustered table in Oracle?
How to rename a column in an existing table?
Differentiate between pre-select and pre-query?
Explain what are the advantages of views?
What are the execution control statements?
Explain the dml?