The following lines contain the word 'select', 'insert', 'update' or 'delete':
/** Global variable to cache currency count when 'ALL' minisite is selected **/
g_all_curr_count number := -9999;
/** Global variable to cache currency code when 'ALL' minisite is selected **/
g_all_curr_code varchar2(15);
SELECT COUNT(distinct f_curr.currency_code) new_count_number
INTO g_all_curr_count
FROM ibe_bi_currency_v f_curr
WHERE not exists (select b.org_id
from ibe_bi_msiteorg_mv b
where b.msite_id = f_Curr.msite_id
MINUS
select a.organization_id
from per_organization_list a
where a.security_profile_id =
g_mo_sec_profile);
select distinct currency_code
into g_all_curr_code
FROM ibe_bi_currency_v f_curr
WHERE currency_code <> g_gp_currency
and currency_code <> g_gs_currency
and not exists (select b.org_id
from ibe_bi_msiteorg_mv b
where b.msite_id = f_Curr.msite_id
MINUS
select a.organization_id
from per_organization_list a
where a.security_profile_id =
g_mo_sec_profile);
SELECT count(distinct currency_code) count_number
INTO g_msite_curr_count_table(l_msite_id)
FROM ibe_bi_currency_v
WHERE msite_id = l_msite_id;
select currency_code
into g_msite_curr_table(l_msite_id)
FROM ibe_bi_currency_v
WHERE msite_id = to_number(l_MSITE_ID)
and currency_code <> g_gp_currency
and currency_code <> g_gs_currency;
Select (end_date - p_date) timespan,
sequence
From FII_TIME_ENT_YEAR
Where p_date BETWEEN start_date AND end_date;
SELECT end_date - p_date timespan,
sequence,
ent_year_id,
start_date
FROM FII_TIME_ENT_qtr
WHERE p_date BETWEEN start_date AND end_date;
SELECT start_date
FROM FII_TIME_ENT_qtr
WHERE sequence = p_sequence
AND ent_year_id = p_year_id;
SELECT end_date - p_date timespan,
sequence,
ent_year_id,
start_date
FROM FII_TIME_ENT_period
WHERE p_date BETWEEN start_date AND end_date;
SELECT start_date
FROM FII_TIME_ENT_PERIOD
WHERE sequence = p_sequence
AND ent_year_id = p_year_id;
select w.end_date - p_date timespan,
w.start_date,
w.sequence,
p.year445_id
from fii_time_week w, fii_time_p445 p
where w.period445_id = p.period445_id
and p_date between w.start_date and w.end_date ;
SELECT w.start_date
from fii_time_week w, fii_time_p445 p
where w.period445_id = p.period445_id
and w.sequence = p_sequence
and p.year445_id = p_year-1;