The following lines contain the word 'select', 'insert', 'update' or 'delete':
select null
from pqh_template_attributes a
where a.template_id = p_template_id;
select null
from pqh_ref_templates a
where a.base_template_id = p_template_id;
select nvl(freeze_status_cd,hr_api.g_varchar2)
from pqh_transaction_categories_vl a
where a.transaction_category_id = p_transaction_category_id;
select 'x'
from fnd_territories_vl a
where a.territory_code = p_legislation_code;
select legislation_code
from pqh_template_attributes tat, pqh_attributes att
where tat.template_id = p_template_id
and tat.attribute_id= att.attribute_id
and att.legislation_code is not null;
select null
from pqh_templates_vl
where template_name = p_template_name
and transaction_category_id = p_transaction_category_id
and template_id <> nvl(p_template_id,0);
Select null
from pqh_transaction_templates
Where template_id = p_template_id;
End if; /* If update or insert */
Select role_template_id,object_version_number
From pqh_role_templates
Where template_id = p_template_id;
pqh_role_templates_api.update_role_template(
p_validate => false
,p_role_template_id => rec.role_template_id
,p_enable_flag => 'N'
,p_object_version_number => l_object_version_number
,p_effective_date => sysdate );
select null
from pqh_ref_templates a
where a.parent_template_id = p_template_id
and a.reference_type_cd = 'REFERENCE';
Select nvl(att.master_attribute_id,att.attribute_id),
tca.attribute_id,rtrim(att.attribute_name),nvl(tat.attribute_id,-1),
nvl(tat.view_flag,'N') , nvl(tat.edit_flag,'N')
From pqh_txn_category_attributes tca,pqh_attributes_vl att,
pqh_template_attributes tat
Where tca.transaction_category_id = p_transaction_category_id
AND tca.attribute_id = att.attribute_id
AND att.attribute_id = tat.attribute_id(+)
AND tat.template_id(+) = p_template_id
Order by 1,2;
Select rtrim(attribute_name)
from pqh_attributes_vl
Where attribute_id = p_attribute_id;
Select null
from pqh_transaction_templates tt
Where tt.template_id = p_template_id
AND tt.transaction_id in (Select ptx.position_transaction_id
From pqh_position_transactions ptx
Where nvl(ptx.transaction_status,'PENDING') in
('APPROVED','SUBMITTED','PENDING'));
Select null from pqh_template_attributes
Where template_id = p_template_id;
Select null from pqh_template_attributes
Where template_id = p_template_id
AND (view_flag is NOT NULL OR
edit_flag IS NOT NULL OR
required_flag IS NOT NULL);
Select null from pqh_ref_templates
Where parent_template_id = p_template_id
and reference_type_cd = 'COPY';
Select null from pqh_ref_templates
Where parent_template_id = p_template_id
and reference_type_cd = 'REFERENCE';
Procedure insert_validate(p_rec in pqh_tem_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_tem_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_tem_shd.g_rec_type
,p_effective_date in date) is
--
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;