write a procedure to find top second no from a list of
numbers
Answer / 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 |
What is oracle ? why we should go for oracle database instead of diffrent databases available in the industry.
what is the use of double ampersand (&&) in sql queries?
Explain about various levels of constraint.
How to download oracle sql developer?
Is a secondary key the same as a foreign key?
What are the steps for performance tuning.
Why we use pl sql?
how to include comments in sql statements? : Sql dba
What is the difference between left join and right join?
How long does it take to learn pl sql?
Can 2 queries be executed simultaneously in a distributed database system?
how to select first 5 records from a table? : Sql dba