Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


write a procedure to find top second no from a list of
numbers



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

Post New Answer

More SQL PLSQL Interview Questions

what is the difference between cursor FETCH and FOR LOOP ?

3 Answers   CG-VAK, Tech Mahindra,


What are the key differences between SQL and PL SQL?

0 Answers  


Explain the steps needed to create the scheduled job?

0 Answers  


Difference between IN and EXISTS

4 Answers   Nous, Polaris,


Why do we need sharding?

0 Answers  


What are transaction and its controls?

0 Answers  


How to return multiple records from procedure?

2 Answers  


what is the use of HASH, LIST partitions?

1 Answers   ITC Infotech,


List and explain the different types of join clauses supported in ansi-standard sql?

0 Answers  


what is innodb? : Sql dba

0 Answers  


What does count (*) do in sql?

0 Answers  


What is coalesce in sql?

0 Answers  


Categories