The following lines contain the word 'select', 'insert', 'update' or 'delete':
select null
from pqh_table_route a
where a.table_route_id = p_consolidated_table_route_id;
select null
from pqh_table_route a
where a.table_route_id = p_master_table_route_id;
select null
from hr_all_organization_units a
where a.organization_id = p_business_group_id;
Select null
from pqh_routing_categories a
where a.transaction_category_id = p_transaction_category_id
and nvl(a.enable_flag,'N') = 'Y';
Select count(*)
From pqh_txn_category_attributes
Where transaction_category_id = p_transaction_category_id
AND list_identifying_flag = 'Y';
sql_stmt := 'Select rct.routing_category_id, count(rng.range_name)'
|| ' from pqh_routing_categories rct,pqh_attribute_ranges rng'
|| ' Where rct.transaction_category_id = :p_transaction_category_id'
|| ' and rct.enable_flag = :p_enable_flag'
|| ' and nvl(rct.default_flag,:dummy1) <> :yes_flag1 '
|| ' and nvl(rct.delete_flag,:dummy2) <> :yes_flag2 ';
|| ' and nvl(rng.delete_flag(+),:dummy3) <> :yes_flag3'
|| ' and rng.routing_list_member_id(+) IS NULL'
|| ' and rng.position_id(+) IS NULL'
|| ' and rng.assignment_id(+) IS NULL'
|| ' group by rct.routing_category_id'
|| ' order by rct.routing_category_id';
sql_stmt1 :='Select rct.routing_category_id'
||' from pqh_routing_categories rct'
||' Where rct.transaction_category_id=:p_transaction_category_id'
||' and rct.enable_flag = :p_enable_flag'
||' and nvl(rct.default_flag,:dummy1) <> :p_default_flag'
||' and nvl(rct.delete_flag,:dummy2) <> :p_delete_flag';
sql_stmt2 := 'Select null from pqh_attribute_ranges'
||' Where routing_category_id = :p_routing_category_id'
||' and enable_flag = :p_enable_flag'
||' and approver_flag = :p_approver_flag';
Select decode(RCT.routing_list_id,NULL,decode(RCT.position_structure_id,NULL,hr_general.decode_lookup('PQH_SUPERVISORY_HIERARCHY','SUPERVISORY_HIERARCHY'),PPS.name),RLT.routing_list_name) list_name
From pqh_routing_categories RCT ,
pqh_routing_lists RLT,
per_position_structures PPS
WHERE RCT.routing_category_id = p_routing_category_id AND
RCT.routing_list_id = RLT.routing_list_id(+) and
RCT.position_structure_id = PPS.position_structure_id(+);
Select count(*) from pqh_txn_category_attributes tca
where tca.transaction_category_id = p_transaction_category_id
AND tca.list_identifying_flag = 'Y';
Select count(*) from pqh_txn_category_attributes tca
where tca.transaction_category_id = p_transaction_category_id
AND tca.member_identifying_flag = 'Y';
select 'Y'
into l_dummy
from dual
where exists ( select null
from pqh_worksheets
where wf_transaction_category_id = p_transaction_category_id
and transaction_status not in ('REJECT','TERMINATE','APPLIED'));
select 'Y'
into l_dummy
from dual
where exists ( select null from pqh_budget_pools
where wf_transaction_category_id = p_transaction_category_id
and approval_status in ('P'));
select 'Y'
into l_dummy
from dual
where exists ( select null from pqh_position_transactions
where wf_transaction_category_id = p_transaction_category_id
and transaction_status not in ('REJECT','TERMINATE','APPLIED'));
Select short_name
into l_short_name
From pqh_transaction_categories
Where transaction_category_id = p_transaction_category_id;
Select tr.from_clause,tr.table_alias,tr.where_clause
From pqh_transaction_categories tct,pqh_table_route tr
Where tct.transaction_category_id = p_transaction_category_id
AND tct.consolidated_table_route_id = tr.table_route_id;
sql_stmt:= 'Select null From '
||l_from_clause
||' Where '
||l_new_where;
Procedure insert_validate(p_rec in pqh_tct_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_tct_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_tct_shd.g_rec_type
,p_effective_date in date) is
--
l_proc varchar2(72) := g_package||'delete_validate';
End delete_validate;