The following lines contain the word 'select', 'insert', 'update' or 'delete':
select user_id , user_name
into x_user_id, x_user_name
from fnd_user
where user_id = p_user_id;
select user_id , user_name
into x_user_id, x_user_name
from fnd_user
where user_name = p_user_name;
select organization_id , name
into x_organization_id, x_organization_name
from hr_all_organization_units
where organization_id = p_organization_id;
select organization_id , name
into x_organization_id, x_organization_name
from hr_all_organization_units
where name = p_organization_name;
SELECT level_values_view_name, dimension_level_short_name
FROM bisfv_dimension_levels
WHERE UPPER(level_values_view_name) = UPPER(l_database_object);
SELECT DATABASE_OBJECT_NAME
INTO l_database_object
FROM ak_regions
WHERE REGION_CODE = UPPER(p_region_code);
SELECT level_values_view_name, dimension_level_short_name
INTO l_dim_level_view, l_dim_level_short_name
FROM bisfv_dimension_levels
WHERE UPPER(level_values_view_name) = UPPER(l_database_object) and dimension_short_name = p_dimension_short_name;
SELECT user_id
INTO l_user_id
FROM fnd_user
WHERE user_name = p_user_name;
||' INTERSECT SELECT DISTINCT VALUE, ID '
||' FROM '||p_database_object
||' WHERE responsibility_id IN ( ';
||' INTERSECT SELECT DISTINCT VALUE, ID'
|| ' FROM '
|| p_database_object
|| ' WHERE '
|| ' ORGANIZATION_ID = '
|| p_organization_ID
|| ' AND NVL(ORGANIZATION_TYPE, ''%'') LIKE '
|| ''''
|| p_organization_type
|| '''';
||' INTERSECT SELECT DISTINCT VALUE, ID'
|| ' FROM '
|| p_database_object;
select FUNCTION_NAME
into l_name
from fnd_form_functions
where function_id = p_value;
select USER_FUNCTION_NAME
into l_name
from fnd_form_functions_tl
where function_id = p_value
and
language = nvl(userenv('LANG'),'US');
select version
into l_version
from wf_activities
where name =p_name
and item_type = p_type
and nvl(begin_date, sysdate) <= sysdate
and nvl(end_date, sysdate) >= sysdate
and type = 'PROCESS';
select display_name
into l_name
from wf_activities_tl
where version = l_version
and name = p_name
and item_type = p_type
and language = nvl(userenv('LANG'),'US');
SELECT TO_NUMBER(substr(trim(VI.version), 1, instr(trim(VI.version), '.', 1, 1) - 1)) INTO l_db_ver
FROM v$instance VI
WHERE VI.instance_role = l_instance_role;
SELECT R.MENU_ID
FROM FND_RESPONSIBILITY_VL R,
FND_USER_RESP_GROUPS U
WHERE U.USER_ID = FND_GLOBAL.USER_ID
AND R.VERSION = 'W'
AND U.RESPONSIBILITY_ID = R.RESPONSIBILITY_ID
AND U.START_DATE <= SYSDATE
AND (U.END_DATE IS NULL OR U.END_DATE >= SYSDATE)
AND R.START_DATE <= SYSDATE
AND (R.END_DATE IS NULL OR R.END_DATE >= SYSDATE);
SELECT FUNCTION_ID
INTO l_Function_Id
FROM FND_FORM_FUNCTIONS
WHERE FUNCTION_NAME = l_Function_Name;
* - BSC_PMD_MD_SELECTMEASURE_PGE
* - BSC_BID_SELECTMEASURE_PGE
*
* 2) "F" if any of the above conditions fail
*
******************************************************************************/
FUNCTION Enable_Custom_Kpi
RETURN VARCHAR2 IS
l_Return_Value VARCHAR2(1);
SELECT property_value
INTO l_property_value
FROM bsc_sys_init
WHERE property_code = G_ENABLE_GEN_SOURCE_REPORT;