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 column? : Sql dba
What is the maximum size of sqlite database?
What are views in sql?
Why is theta join required?
What is bitemporal narrowing?
how to load data files into tables with 'mysqlimport'? : Sql dba
How do you remove duplicate records from a table?
Do stored procedures prevent sql injection?
How are sql commands classified?
How do you declare a constant?
Describe different types of general function used in sql?
What is error ora-01000: maximum open cursors exceeded
What are all the different normalizations?
Are subqueries faster than joins?
i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5