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
, ota_lp_cat_inclusions lci
where ctu.category_usage_id = p_category_usage_id
and lci.category_usage_id = ctu.category_usage_id
and lci.learning_path_id = p_learning_path_id
and pbg.business_group_id = ctu.business_group_id;
select pbg.legislation_code
from per_business_groups_perf pbg
,ota_category_usages ctu
,ota_lp_cat_inclusions lci
where ctu.category_usage_id = p_category_usage_id
and lci.category_usage_id = ctu.category_usage_id
and lci.learning_path_id = p_learning_path_id
and pbg.business_group_id = ctu.business_group_id;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in ota_lci_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
SELECT
start_date_active,
nvl(end_date_active, to_date ('31-12-4712', 'DD-MM-YYYY'))
FROM ota_category_usages
WHERE category_usage_id =p_category_usage_id;
SELECT start_date_active,
nvl(end_date_active, to_date ('31-12-4712', 'DD-MM-YYYY'))
FROM ota_learning_paths
WHERE learning_path_id = p_learning_path_id;
Procedure insert_validate
(p_effective_date in date
,p_rec in ota_lci_shd.g_rec_type
,p_learning_path_id in number
,p_category_usage_id in number
) is
--
l_proc varchar2(72) := g_package||'insert_validate';
End insert_validate;
Procedure update_validate
(p_effective_date in date
,p_rec in ota_lci_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_lci_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;
select 'Y'
from OTA_LP_CAT_inclusions lci
where lci.learning_path_id = p_learning_path_id
and lci.primary_flag = 'Y';
select 'Y'
from OTA_LP_CAT_inclusions lci
where lci.learning_path_id = p_learning_path_id
and lci.category_usage_id = p_category_usage_id
and lci.primary_flag = 'Y';
select 'Y'
from OTA_LP_CAT_inclusions lci
where lci.learning_path_id = p_learning_path_id
and lci.category_usage_id = p_category_usage_id;
select start_date_active
, end_date_active
from ota_category_usages ctu
where ctu.category_usage_id = p_category_usage_id;