i want to know about mr.b.kotravel......who has answered
for second maxmium salary from employee table

Answer Posted / obulesu

select * from (select e.*,dense_rank() over(order by sal desc) r from emp e) where r=2;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State some uses of redo log files?

573


various types of hints and their usage

2139


How to use attributes of the implicit cursor in oracle?

573


How do I limit the number of rows returned by an oracle query after ordering?

651


What is the disadvantage of User defind function?

1845






What is the difference between translate and replace in oracle?

669


How many types of synonyms in Oracle?

609


How do I escape a reserved word in oracle?

641


What is the usage of control file in oracle?

619


what are steps for interface? where is exchange rate defined in which table?

1508


How will you differentiate between varchar & varchar2?

596


How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?

558


What is the order of defining local variables and sub procedures/functions?

612


What is ceil and floor in oracle?

586


How can we find out the duplicate values in an oracle table?

621