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
What is file based approach?
how to get @@error and @@rowcount at the same time? : Sql dba
What is rename in sql?
What is the difference between microsoft access and sql?
What is the location of pre_defined_functions.
how to dump a table to a file with 'mysqldump'? : Sql dba
How do I run a sql query?
Explain what is a column in a table?
What sql does db2 use?
what are wild cards used in database for pattern matching ? : Sql dba
What view means?
Describe types of sql statements?
how many values can the set function of mysql take? : Sql dba
what is an alias command? : Sql dba
What is trigger in sql?