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 |
How is a PL/SQL code compiled?
How do I make my sql query run faster?
Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?
How do u count no of rows in a table?
How do I count rows in sql query?
List out the acid properties and explain?
What is the usage of the distinct keyword?
What is the difference between the implicit and explicit cursors?
What are the advantages of the packages
Why do we create stored procedures & functions in pl/sql and how are they different?
How do I kill a query in postgresql?
----> There is a table T with two columns C1 and C2. The data is as below: C1 C2 1 4 2 5 3 6
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)