Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to create index-by table in oracle?

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


Please Help Members By Posting Answers For Below Questions

What is meant by joins? List out the types of joins.

1102


How to pass a cursor variable to a procedure?

1154


How to delete a column in an existing table in oracle?

1126


How to export your own schema?

1049


Explain a segment?

1127


What is Virtual Private Database in Oracle?

1147


How to convert characters to times in oracle?

1070


How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?

1990


Select all the employees who were hired in last 2 years and who works in dept where max managers are working.

3021


What is dynamic proxy?

1049


How a database is related to tablespaces?

1081


What is a sub query? What are its various types?

1270


What is the usage of save points in oracle database?

1011


how to handle exceptions in post production

1482


What is the difference between online and offline backups?

1130