The following lines contain the word 'select', 'insert', 'update' or 'delete':
select distinct security_group_id
from per_all_people_f ppf
,per_business_groups pbg
where ppf.person_id = p_person_id
and ppf.business_group_id= pbg.business_group_id
and p_effective_date between
ppf.effective_start_date and ppf.effective_end_date;
select flv.last_updated_by upd
from fnd_lookup_values flv
where flv.lookup_type='DISABILITY_CATEGORY'
and flv.language = userenv('LANG')
and flv.security_group_id = p_security_id
and flv.lookup_code = p_category;
select flv.last_updated_by upd
from fnd_lookup_values flv
where flv.lookup_type='DISABILITY_CATEGORY'
and flv.language = userenv('LANG')
and flv.security_group_id =p_security_id
and flv.lookup_code = p_category;
PROCEDURE VALIDATE_UPDATE_DISABILITY(p_category in varchar2,
p_disability_id number,
p_effective_date date)
AS
cursor csr_get_securityid
is
select distinct security_group_id
from per_disabilities_f pdf
,per_all_people_f ppf
,per_business_groups pbg
where ppf.person_id = pdf.person_id
and ppf.business_group_id= pbg.business_group_id
and pdf.disability_id = p_disability_id
and p_effective_date between
ppf.effective_start_date and ppf.effective_end_date;
select flv.last_updated_by upd
from fnd_lookup_values flv
where flv.lookup_type='DISABILITY_CATEGORY'
and flv.language = userenv('LANG')
and flv.security_group_id =p_security_id
and flv.lookup_code = p_category;
select flv.last_updated_by upd
from fnd_lookup_values flv
where flv.lookup_type='DISABILITY_CATEGORY'
and flv.language = userenv('LANG')
and flv.security_group_id =p_security_id
and flv.lookup_code = p_category;
END VALIDATE_UPDATE_DISABILITY;