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
Explain enable novalidate constraint.
How to rename an index?
What do database buffers contain?
How to define a data field as not null?
why should i declare foreign key constraint as self relation instead of binary relation in tables ?
 How to use an oracle sequence generator in a mapping?
What are data pump export and import modes?
What is ceil and floor in oracle?
How do we represent comments in oracle?
How do I know if oracle client is installed on windows?
In what script is snap$ created? In what script is the scott/tiger schema created?
material view and view disadvantages?
How to create tables for odbc connection testing?
what is the difference between functional dependecy and multilevel dependency?
How many types of cluster table in Oracle?