The following lines contain the word 'select', 'insert', 'update' or 'delete':
select null
from per_shared_types a
where a.shared_type_id = p_budget_unit3_id;
select null
from per_shared_types a
where a.shared_type_id = p_budget_unit2_id;
select null
from per_shared_types a
where a.shared_type_id = p_budget_unit1_id;
select budget_unit1_id,budget_unit2_id,budget_unit3_id,budget_name,budget_start_date,budget_end_date
from pqh_budgets
where position_control_flag ='Y'
and (business_group_id = p_business_group_id and business_group_id is not null)
and budget_start_date p_budget_start_date
and budget_id <> nvl(p_budget_id,0);
select null
from pay_calendars a
where a.period_set_name = p_period_set_name;
SELECT *
FROM gl_budgets
WHERE budget_name = p_gl_budget_name ;
SELECT start_date,end_date
FROM gl_budgets_v
WHERE budget_name = p_gl_budget_name ;
SELECT 'X'
FROM gl_sets_of_books a
WHERE a.set_of_books_id = nvl(p_gl_set_of_books_id,-9999);
SELECT COUNT(*)
FROM per_time_periods
WHERE period_set_name = p_period_set_name
AND start_date BETWEEN p_budget_start_date AND p_budget_end_date
AND end_date BETWEEN p_budget_start_date AND p_budget_end_date ;
SELECT MIN(start_date)
FROM per_time_periods
WHERE period_set_name = p_period_set_name;
SELECT MIN(start_date)
FROM per_time_periods tp,
pqh_budget_periods bpr,
pqh_budget_details bdt,
pqh_budget_versions bvr
WHERE time_period_id = bpr.start_time_period_id
and bpr.budget_detail_id = bdt.budget_detail_id
AND bdt.budget_version_id = bvr.budget_version_id
and bvr.budget_id = p_budget_id;
SELECT MIN(start_date)
FROM per_time_periods tp,
pqh_worksheet_periods bpr,
pqh_worksheet_details bdt,
pqh_worksheets bvr
WHERE time_period_id = bpr.start_time_period_id
and bpr.worksheet_detail_id = bdt.worksheet_detail_id
AND bdt.worksheet_id = bvr.worksheet_id
AND nvl(bvr.transaction_status,'PENDING') = 'PENDING'
and bvr.budget_id = p_budget_id;
SELECT COUNT(*)
FROM per_time_periods
WHERE period_set_name = p_period_set_name
AND start_date BETWEEN p_budget_start_date AND p_budget_end_date
AND end_date BETWEEN p_budget_start_date AND p_budget_end_date ;
SELECT MAX(end_date)
FROM per_time_periods
WHERE period_set_name = p_period_set_name;
SELECT MIN(start_date)
FROM per_time_periods tp,
pqh_budget_periods bpr,
pqh_budget_details bdt,
pqh_budget_versions bvr
WHERE time_period_id = bpr.start_time_period_id
and bpr.budget_detail_id = bdt.budget_detail_id
AND bdt.budget_version_id = bvr.budget_version_id
and bvr.budget_id = p_budget_id;
SELECT MIN(start_date)
FROM per_time_periods tp,
pqh_worksheet_periods bpr,
pqh_worksheet_details bdt,
pqh_worksheets bvr
WHERE time_period_id = bpr.start_time_period_id
and bpr.worksheet_detail_id = bdt.worksheet_detail_id
AND bdt.worksheet_id = bvr.worksheet_id
AND nvl(bvr.transaction_status,'PENDING') = 'PENDING'
and bvr.budget_id = p_budget_id;
select system_type_cd
from per_shared_types
where shared_type_id = p_shared_type_id;
select 'X'
from pqh_budgets
where budget_name = p_budget_name
and budget_id <> nvl(p_budget_id,0);
select a.system_type_cd,
a.shared_type_name
from per_shared_types a
where a.shared_type_id = p_budget_unit1_id;
select a.system_type_cd,
a.shared_type_name
from per_shared_types a
where a.shared_type_id = p_budget_unit2_id;
select a.system_type_cd,
a.shared_type_name
from per_shared_types a
where a.shared_type_id = p_budget_unit3_id;
select null
from fnd_currencies a
where a.currency_code = p_currency_code;
Procedure insert_validate(p_rec in pqh_bgt_shd.g_rec_type
,p_effective_date in date) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate(p_rec in pqh_bgt_shd.g_rec_type
,p_effective_date in date) is
--
l_proc varchar2(72) := g_package||'update_validate';
End update_validate;
Procedure delete_validate(p_rec in pqh_bgt_shd.g_rec_type
,p_effective_date in date) is
--
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;
select a.legislation_code
from per_business_groups a,
pqh_budgets b
where b.budget_id = p_budget_id
and a.business_group_id = b.business_group_id;