Answer Posted / santosh kumar
declare
type str is table of number index by binary_integer;
tab_res str; ---------declaring variable....
min_eid number;
max_eid number;
begin
select min(employee_id),max(employee_id) into
min_eid,max_eid
from employees;
for i in min_eid..max_eid loop
select salary into tab_rec(i) from employees
where employee_id=i;
end;
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the difference between post-database commit and post-form commit?
List the various oracle database objects?
How can I introduce multiple conditions in like operator?
What is ASM (Automatic Storage Management) in Oracle?
From the following identify the non schema object: packages, triggers, public synonyms, tables and indexes.
How to view the tablespaces in the current database?
What is SQL access advisor in Oracle?
Difference between the “verify” and “feedback” command?
What is a schema in oracle?
State the difference between a primary key and foreign key?
why dont we assign not null constraint as table level constraint.
How to rename an existing table?
WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?
How to use null as conditions in oracle?
How to create a new tablespace in oracle?