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 a join? : Sql dba
how to get help information from the server? : Sql dba
1.when will you use week refcursor and when will you use strong ref cursor ? 2.what is the use of sql trace..how do you use it ? 3.can you please send all the sql plus commands...like set line 6000....
What is differance unique key and primary key.
What are different types of sql commands?
What is scalar data type in pl sql?
How do you explain an index number?
What is prepared statement in sql?
how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba
What is primary key sql?
How to use distinct and count in sql query? Explain
How to add Foreign key in a table after the creation of the table?