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

Should I use mbr or gpt?

1061


What is pivot table in sql?

1168


What are the two types of exceptions in pl/sql?

1088


Explain spool.

1217


What is clause?

1225


How to avoid using cursors?

1175


How to write pl sql program in mysql command prompt?

1159


How to pronounce postgresql?

1096


how to use case expression? : Sql dba

1076


What is meant by <> in sql?

1026


Is left join and outer join same?

1114


What are the types of sql commands?

1154


What are database links used for?

1095


How to run sql statements with oracle sql developer?

1118


How delete all data from all tables in sql?

983