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
How do I find the database name in oracle?
What do you mean by redo log file mirroring?
How to turn on or off recycle bin for the instance?
What are privileges and grants?
please explain.. DB architecture ...
What privilege is needed for a user to create tables in oracle?
What is an oracle database table?
How to create a new view in oracle?
How do I uninstall oracle 11g?
State all possible different index configurations a table can possibly have?
What is Virtual Private Database in Oracle?
How to save query output to a local file?
What are the limitations oracle database 10g xe?
Is a rollback possible to any savepoint?
What is oracle thin client?