find out the second highest salary?
Answer Posted / mahesh
We can use an OLAP function
select * from
(select ename,sal,dense_rank() over(order by sal desc)
rankings from emp ) a
where a.rankings = 2;
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the quickest way to export a table to a flat file?
What is index-organized table in Oracle?
What is the difference between count (*), count (expression), count (distinct expression)?
What is oracle database 10g express edition?
Explain the use of grant option in imp command.
How to Truncate Table in Oracle
How to build data dictionary view an new database?
How to calculate date and time differences in oracle?
How can you use check constraints for self referential integrity?
What are the differences between lov and list item?
How to use attributes of the implicit cursor in oracle?
Write a syntax for update query in oracle?
Give the advantages and disadvantages of clusters.
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
How does the on-delete-cascade statement work?