The following lines contain the word 'select', 'insert', 'update' or 'delete':
select pbg.security_group_id
from per_business_groups pbg
, per_calendar_entries ent
where ent.calendar_entry_id = p_calendar_entry_id
and pbg.business_group_id = ent.business_group_id;
select pbg.legislation_code
from per_business_groups_perf pbg
, per_calendar_entries ent
where ent.calendar_entry_id = p_calendar_entry_id
and pbg.business_group_id (+) = ent.business_group_id;
Procedure chk_non_updateable_args
(p_effective_date in date
,p_rec in per_ent_shd.g_rec_type
) IS
--
l_proc varchar2(72) := g_package || 'chk_non_updateable_args';
End chk_non_updateable_args;
select date_from,date_to
from PER_ORG_STRUCTURE_VERSIONS
where org_structure_version_id = p_org_structure_version_id;
select date_from, date_to
from PER_GEN_HIERARCHY_VERSIONS
where hierarchy_id = p_hierarchy_id;
Select 'x'
From per_cal_entry_values env
Where env.calendar_entry_id = p_calendar_entry_id;
fnd_message.set_name('PER', 'PER_289964_CAL_NO_DELETE');
SELECT 'Y'
FROM per_gen_hierarchy gen
WHERE gen.hierarchy_id = p_hierarchy_id
AND gen.TYPE like 'PER_CAL%'
AND ( (p_business_group_id is not null and
(gen.business_group_id = p_business_group_id or gen.business_group_id is null))
OR
(p_business_group_id is null and gen.business_group_id is null));
SELECT 'Y'
FROM per_org_structure_versions osv
WHERE OSV.ORGANIZATION_STRUCTURE_ID = p_organization_structure_id
AND OSV.ORG_STRUCTURE_VERSION_ID = p_org_structure_version_id
AND ( (p_business_group_id is not null and
(osv.business_group_id = p_business_group_id or osv.business_group_id is null))
OR
(p_business_group_id is null and osv.business_group_id is null) );
SELECT 'Y'
FROM fnd_flex_value_sets vs
WHERE vs.FLEX_VALUE_SET_ID = p_value_set_id
AND vs.VALIDATION_TYPE = 'F';
SELECT decode (ent.HIERARCHY_ID, NULL,
decode (ent.VALUE_SET_ID, NULL,'O','V'),
'H')
FROM per_calendar_entries ent
WHERE ent.calendar_entry_id = p_calendar_entry_id
AND exists (select 'Y' from per_cal_entry_values env
where env.calendar_entry_id = p_calendar_entry_id);
SELECT 'Y'
FROM PER_CALENDAR_ENTRIES ENT
WHERE ENT.IDENTIFIER_KEY = p_identifier_key;
Procedure insert_validate
(p_effective_date in date
,p_rec in per_ent_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 per_ent_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 per_ent_shd.g_rec_type
) is
--
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;