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
What do you mean by merge in oracle and how can we merge two tables?
Explain an index segment?
What is ASM (Automatic Storage Management) in Oracle?
What is integrity and what is constraint??Explain with example
can anyody please send me the dump for Oracle 10g certifications for DBA path?
What view(s) do you use to associate a users SQLPLUS session with his o/s process?
What are the set operators union, union all, minus & intersect meant to do?
candidate key is subset of super key but not vice-verse explain
Can we create database in oracle using command line ?
How to execute a stored procedure in oracle?
How to convert dates to characters in oracle?
Can a formula column be obtained through a select statement ?
Can select statements be used on views in oracle?
What is the usage of synonyms?
What is the minimum client footprint required to connect c# to an oracle database?