The following lines contain the word 'select', 'insert', 'update' or 'delete':
select link_type_id
from cs_sr_link_types_b
where link_type_id = p_link_type_id
and SYSDATE between nvl(start_date_active, SYSDATE)
and nvl(end_date_active , SYSDATE);
select count(*)
into l_dummy
from cs_sr_link_valid_obj
where subject_type = p_subject_type
and object_type = p_object_type
and link_type_id = p_link_type_id
and SYSDATE between nvl(start_date_active, SYSDATE)
and nvl(end_date_active , SYSDATE );
select count(*)
into l_dummy
from cs_sr_link_valid_obj
where subject_type = p_object_type
and object_type = p_subject_type
and link_type_id = ( select reciprocal_link_type_id
from cs_sr_link_types_b
where link_type_id = p_link_type_id )
and SYSDATE between nvl(start_date_active, SYSDATE)
and nvl(end_date_active , SYSDATE );
select select_id, select_name, from_table, name
from jtf_objects_vl
where object_code = c_object_code;
l_sub_select_id varchar2(90);
l_sub_select_name varchar2(90);
l_obj_select_id varchar2(90);
l_obj_select_name varchar2(90);
l_sub_select_id, l_sub_select_name, l_sub_from_table, x_subject_type_name;
elsif ( l_sub_select_name is null ) then
close get_jtf_details;
l_obj_select_id, l_obj_select_name, l_obj_from_table, x_object_type_name;
elsif ( l_obj_select_name is null ) then
close get_jtf_details;
l_sql_stmnt := 'select max(' || l_sub_select_name || ' ) from ' || l_sub_from_table
|| ' where ' || l_sub_select_id || ' = :p1 ' ;
IF (l_obj_select_name is NOT NULL) THEN
l_sql_stmnt := 'select max(' || l_obj_select_name || ' ) from ' || l_obj_from_table
|| ' where ' || l_obj_select_id || ' = :p1 ' ;
l_sql_stmnt := l_sql_stmnt || ' and ' || l_obj_select_name || ' = :p2 ';
END IF; -- p_obj_select_name is not null
select count(*)
into l_dummy
from cs_incident_links
where subject_id = p_subject_id
and subject_type = p_subject_type
and object_id = p_object_id
and object_type = p_object_type
and SYSDATE between nvl(start_date_active , SYSDATE)
and nvl(end_date_active - 1 , SYSDATE);
select object_id
from cs_incident_links
start with ( subject_id = p_object_id
and subject_type = p_object_type
and link_type_id = p_link_type_id
and SYSDATE between nvl(start_date_active, SYSDATE)
and nvl(end_date_active, SYSDATE) )
connect by prior object_id = subject_id
and prior object_type = subject_type
and prior link_type_id = link_type_id
and SYSDATE between nvl(start_date_active, SYSDATE)
and nvl(end_date_active, SYSDATE);
select max(name)
into l_link_type_name
from cs_sr_link_types_vl
where link_type_id = p_link_type_id;
select object_type, object_number
from cs_incident_links
where subject_id = c_sub_obj_id
and subject_type = c_sub_obj_type
and link_type_id = 3 -- Duplicate Of
and SYSDATE between nvl(start_date_active, SYSDATE)
and nvl(end_date_active - 1, SYSDATE);
select link_type_id
from cs_incident_links
where subject_id = c_sub_obj_id
and subject_type = c_sub_obj_type
and link_type_id in (1, 2, 3, 4) --causals and Orig/Dup link type ids.
and SYSDATE between nvl(start_date_active, SYSDATE)
and nvl(end_date_active - 1, SYSDATE);
select name
from cs_sr_link_types_vl
where link_type_id = c_link_type_id;
select name
into l_object_type_name
from jtf_objects_vl
where object_code = c1rec.object_type;
select name
into l_object_type_name
from jtf_objects_vl
where object_code = c1rec.object_type;
select max(name)
into l_new_link_type_name
from cs_sr_link_types_vl
where link_type_id = p_link_type_id;
select max(name)
into l_existing_link_type_name
from cs_sr_link_types_vl
where link_type_id = c2rec.link_type_id;
select max(name)
into l_new_link_type_name
from cs_sr_link_types_vl
where link_type_id = p_link_type_id;
select max(name)
into l_existing_link_type_name
from cs_sr_link_types_vl
where link_type_id = c2rec.link_type_id;
select responsibility_name
from fnd_responsibility_vl
where responsibility_id = sys_context('FND', 'RESP_ID')
and application_id = sys_context('FND', 'RESP_APPL_ID');
select incident_number
from cs_incidents_all_b
where incident_id = p_incident_id;
select count(*)
into l_dummy
from cs_incidents_b_sec
where incident_id = p_incident_id;