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 |
Can we write create command in the plsql block?if possible how?
What is pl sql architecture?
what is the order of pre-defined exceptions.
Write an sql query to select all records from the table?
what is self join and how it works??
What is difference between joins and union?
What data types does pl/SQL have?
What is sp_helptext?
Is sql easier than java?
Explain what is a database?
Why is a primary key important?
How do I write a cron which will run a sql query and mail the results to agroup?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)