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
Is sql a scripting language?
How can we find duplicate records in a table?
What are inbuilt functions in sql?
What do you understand by pl/sql records?
What is package in pl sql with an examples?
What are the sql aggregate functions?
explain what is mysql? : Sql dba
What is a .db file?
what is recursive stored procedure? : Sql dba
What is a behavioral trigger?
What is a column in a table?
What is constant in pl sql?
what is the bond code in materialized view?
How do I view a sql trace file?
What is the maximum number of rows in sql table?