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 are ddl statements in oracle?
How to recover a dropped table in oracle?
Where do we use decode and case statements?
What is the difference between primary key and unique key and foreign key in oracle?
What is an anonymous block?
What are the various oracle database objects?
Can we insert data in view oracle?
Explain integrity constraint?
What is control file used for?
Is the After report trigger fired if the report execution fails ?
What is the purpose of tables, private synonyms and public synonyms in Oracle?
Explain oracle 12c new features for developers?
What is transaction control statement and how many types of transaction control statement in Oracle?
How to omit columns with default values in insert statement in oracle?
How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?