tokerago13
Programmer
I have got the following problem...
I have a cursor that will retrieve multiple rows given below...
select to_number(c.description) description,
b.flex_value
from fnd_flex_value_sets a
,fnd_flex_values b
,fnd_flex_values_tl c
where a.flex_value_set_name = 'FSA_PA_INDEX_PERCENTAGE'
and a.flex_value_set_id = b.flex_value_set_id
and b.flex_value_id = c.flex_value_id
and to_date(b.flex_value,'YYYY') between (trunc(sysdate) + 365)
and to_date(x_start_date,'YYYY');
I would like to use the values returned in description and multiply against each other. But I might not know the number of rows that will be returned.
At the end of the fetch for the loop, I would like something like this (description1*description*..description_n).I have not used PL/SQL tables before and would not know how to handle the variables so that I can multiply them against each other at the end of the loop.
Thanks.
I have a cursor that will retrieve multiple rows given below...
select to_number(c.description) description,
b.flex_value
from fnd_flex_value_sets a
,fnd_flex_values b
,fnd_flex_values_tl c
where a.flex_value_set_name = 'FSA_PA_INDEX_PERCENTAGE'
and a.flex_value_set_id = b.flex_value_set_id
and b.flex_value_id = c.flex_value_id
and to_date(b.flex_value,'YYYY') between (trunc(sysdate) + 365)
and to_date(x_start_date,'YYYY');
I would like to use the values returned in description and multiply against each other. But I might not know the number of rows that will be returned.
At the end of the fetch for the loop, I would like something like this (description1*description*..description_n).I have not used PL/SQL tables before and would not know how to handle the variables so that I can multiply them against each other at the end of the loop.
Thanks.