write a procedure to find top second no from a list of
numbers

Answer Posted / roshan

create or replace procedure pr_getmax(enter_number in
number,sal out number)
as
begin
select salary into sal from
(select rownum rn,salary
from
(select
a.salary
from
employees a
order by a.salary desc) )a
where
a.rn = enter_number;
end;

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why join is faster than subquery?

603


What is a sql trace file?

552


What is the maximum size of sqlite database?

550


How do I save a sql query?

551


Does google use sql?

518






what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba

561


What is rank () in sql?

536


how can we know the count/number of elements of an array? : Sql dba

578


How to set up sql*plus output format in oracle?

600


How bulk collect improves performance?

576


What do you mean by stored procedures? How do we use it?

529


how are mysql timestamps seen to a user? : Sql dba

566


What are sql built in functions?

512


Why is %isopen always false for an implicit cursor?

574


Define commit?

559