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 meant by joins? List out the types of joins.
How to pass a cursor variable to a procedure?
How to delete a column in an existing table in oracle?
How to export your own schema?
Explain a segment?
What is Virtual Private Database in Oracle?
How to convert characters to times in oracle?
How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?
Select all the employees who were hired in last 2 years and who works in dept where max managers are working.
What is dynamic proxy?
How a database is related to tablespaces?
What is a sub query? What are its various types?
What is the usage of save points in oracle database?
how to handle exceptions in post production
What is the difference between online and offline backups?