The following lines contain the word 'select', 'insert', 'update' or 'delete':
select pbg.security_group_id,
pbg.legislation_code
from per_business_groups_perf pbg
, ota_category_usages ctu
where ctu.category_usage_id = p_category_usage_id
and pbg.business_group_id = ctu.business_group_id;
select pbg.legislation_code
from per_business_groups_perf pbg
, ota_category_usages ctu
where ctu.category_usage_id = p_category_usage_id
and pbg.business_group_id = ctu.business_group_id;
select
ctu.start_date_active,
nvl(ctu.end_date_active, hr_api.g_eot)
from
ota_category_usages ctu
where
ctu.category_usage_id = p_parent_cat_usage_id;
select
ccat.start_date_active,
ccat.end_date_active
from
ota_category_usages ccat
where
ccat.parent_cat_usage_id = p_category_usage_id;
select
tav.start_date,
tav.end_date
from
ota_activity_versions tav,
ota_act_cat_inclusions aci
where
tav.activity_version_id = aci.activity_version_id
and aci.primary_flag= 'Y'
and aci.category_usage_id = p_category_usage_id;
select
lps.start_date_active,
lps.end_date_active
from
ota_learning_paths lps,
ota_lp_cat_inclusions lci
where
lps.learning_path_id = lci.learning_path_id
and lci.primary_flag= 'Y'
and lci.category_usage_id = p_category_usage_id;
select
distinct 'found'
From
ota_category_usages ctu
where
ctu.business_group_id = p_business_group_id
and ctu.parent_cat_usage_id is null
and ctu.type = 'C';
select start_date,
end_date
from
ota_offerings off
where
off.delivery_mode_id = p_category_usage_id;
select 'Y'
From ota_offerings off
where off.delivery_mode_id = p_category_usage_id;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in ota_ctu_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
select
distinct ctu.type
from
ota_category_usages_vl ctu
where
ctu.category = p_category
and (p_category_usage_id is null or ctu.category_usage_id <> p_category_usage_id)
and (ctu.parent_cat_usage_id = p_parent_cat_usage_id or ctu.type <> 'C')
and ctu.business_group_id = p_business_group_id
and ctu.type = p_type;
Procedure insert_validate
(p_effective_date in date
,p_rec in ota_ctu_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_effective_date in date
,p_rec in ota_ctu_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'update_validate';
chk_non_updateable_args
(p_effective_date => p_effective_date
,p_rec => p_rec
);
End update_validate;
Procedure delete_validate
(p_rec in ota_ctu_shd.g_rec_type
) is
--
CURSOR cur_category_type is
select
ctu.type
From
ota_category_usages ctu
where
ctu.category_usage_id = p_rec.category_usage_id;
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;
select
'1' Cat_exists
From
ota_category_usages ctu1
where
ctu1.category_usage_id = p_category_usage_id
and ctu1.category_usage_id in
(select
ctu2.parent_cat_usage_id
From
ota_category_usages ctu2
connect by ctu2.category_usage_id = prior ctu2.parent_cat_usage_id
start with ctu2.category_usage_id = p_parent_cat_usage_id
);
select
distinct 'found'
From
ota_category_usages ctu
where
parent_cat_usage_id = p_category_usage_id;
select
distinct 'found'
From
ota_act_cat_inclusions cti
where
cti.category_usage_id = p_category_usage_id;
select 'Y'
From ota_offerings off
where off.delivery_mode_id = p_category_usage_id;
select
distinct 'found'
From
ota_lp_cat_inclusions lci
where
lci.category_usage_id = p_category_usage_id;
select
distinct tad.name
From
ota_training_plan_members tpm,
ota_activity_definitions_vl tad,
ota_category_usages ctu
where
ctu.category_usage_id = tad.category_usage_id
and tad.activity_id = tpm.activity_definition_id
and ctu.category_usage_id = p_category_usage_id;