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

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


Please Help Members By Posting Answers For Below Questions

Can a foreign key be null?

1029


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

967


What is bind reference and how can it be created?

965


What is an intersect?

1041


What is cartesian join in sql?

1027


How do I view a procedure in sql?

906


Can there be 2 primary keys in a table?

951


What is example of database?

983


How to take user input in pl sql?

1105


What is the syntax to add a record to a table?

1020


What do you understand by pl/sql packages?

1017


What is trigger and stored procedure in sql?

975


who introduced sql?

947


Can we create a trigger on view?

839


Define SQL and state the differences between SQL and other conventional programming Languages?

1138