The following lines contain the word 'select', 'insert', 'update' or 'delete':
select count(*)
from amv_c_categories_b
where channel_category_id = p_category_id;
select count(*)
from jtf_rs_resource_extns
where resource_id = p_user_id;
select count(*)
from amv_u_my_channels
where my_channel_id = p_mychannel_id;
FUNCTION Get_DeleteChannelStatus
( p_channel_id IN NUMBER,
p_user_or_group_id IN NUMBER,
p_user_or_group_type IN VARCHAR2) return boolean
IS
--
l_flag varchar2(1);
select can_delete_flag
from amv_u_access
where access_to_table_code = AMV_UTILITY_PVT2.G_CHANNEL
and access_to_table_record_id = p_channel_id
and user_or_group_id = p_user_or_group_id
and user_or_group_type = p_user_or_group_type;
END Get_DeleteChannelStatus;
FUNCTION Get_UpdateChannelStatus
( p_channel_id IN NUMBER,
p_user_or_group_id IN NUMBER,
p_user_or_group_type IN VARCHAR2) return boolean
IS
--
l_flag varchar2(1);
select can_update_flag
from amv_u_access
where access_to_table_code = AMV_UTILITY_PVT2.G_CHANNEL
and access_to_table_record_id = p_channel_id
and user_or_group_id = p_user_or_group_id
and user_or_group_type = p_user_or_group_type;
END Get_UpdateChannelStatus;
FUNCTION Get_DeleteCategoryStatus
( p_category_id IN NUMBER,
p_user_or_group_id IN NUMBER,
p_user_or_group_type IN VARCHAR2) return boolean
IS
--
l_flag varchar2(1);
select can_delete_flag
from amv_u_access
where access_to_table_code = AMV_UTILITY_PVT2.G_CATEGORY
and access_to_table_record_id = p_category_id
and user_or_group_id = p_user_or_group_id
and user_or_group_type = p_user_or_group_type;
END Get_DeleteCategoryStatus;
FUNCTION Get_UpdateCategoryStatus
( p_category_id IN NUMBER,
p_user_or_group_id IN NUMBER,
p_user_or_group_type IN VARCHAR2) return boolean
IS
--
l_flag varchar2(1);
select can_update_flag
from amv_u_access
where access_to_table_code = AMV_UTILITY_PVT2.G_CATEGORY
and access_to_table_record_id = p_category_id
and user_or_group_id = p_user_or_group_id
and user_or_group_type = p_user_or_group_type;
END Get_UpdateCategoryStatus;