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 does the sign mean in sql?

0 Answers  


Delete the emps whose salaries are lowest sals of their own dept.

5 Answers  


What is AUTH_ID and AUTH_USER in pl/sql ?

0 Answers   INDUS,


What is sql rowcount?

0 Answers  


How to sort the rows in sql.

0 Answers  


How can we optimize a sql query?

0 Answers  


What is package in pl sql with an examples?

0 Answers  


How do you delete a table?

0 Answers  


What are the indexing methods?

0 Answers  


What does seeding a database mean?

0 Answers  


What is rownum and rowid?

0 Answers  


What is package in pl sql?

0 Answers  


Categories