The following lines contain the word 'select', 'insert', 'update' or 'delete':
Select
tcc.gl_set_of_books_id,
thg.SEGMENT
,thg.SEGMENT_NUM
,thg.HR_DATA_SOURCE
,thg.CONSTANT
,thg.HR_COST_SEGMENT
FROM OTA_HR_GL_FLEX_MAPS THG
,OTA_CROSS_CHARGES TCC
WHERE THG.Cross_charge_id = TCC.Cross_charge_id and
TCC.Business_group_id = p_business_group_id and
TCC.Type = 'E' and
TCC.FROM_TO = 'F' and
Trunc(sysdate) between tcc.start_date_active and nvl(tcc.end_date_active,sysdate)
ORDER BY thg.segment_num;
Select
tcc.gl_set_of_books_id,
thg.SEGMENT
,thg.SEGMENT_NUM
,thg.HR_DATA_SOURCE
,thg.CONSTANT
,thg.HR_COST_SEGMENT
FROM OTA_HR_GL_FLEX_MAPS THG
,OTA_CROSS_CHARGES TCC
WHERE THG.Cross_charge_id = TCC.Cross_charge_id and
TCC.Business_group_id = p_business_group_id_to and
TCC.Type = 'E' and
TCC.FROM_TO = 'T' and
Trunc(sysdate) between tcc.start_date_active and nvl(tcc.end_date_active,sysdate)
ORDER BY thg.segment_num;
SELECT
COST_ALLOCATION_KEYFLEX_ID
FROM HR_ALL_ORGANIZATION_UNITS
WHERE ORGANIZATION_ID = l_organization_id;
SELECT CHART_OF_ACCOUNTS_ID
FROM GL_SETS_OF_BOOKS
WHERE SET_OF_BOOKS_ID = p_set_of_books_id;
SELECT hr.COST_ALLOCATION_KEYFLEX_ID
FROM HR_ALL_ORGANIZATION_UNITS hr ,
PER_ALL_ASSIGNMENTS_F asg
WHERE hr.organization_id = asg.organization_id and
asg.organization_id = p_organization_id and
asg.assignment_id = p_assignment_id and
trunc(sysdate) between asg.effective_start_date and
asg.effective_end_date;
SELECT hr.COST_ALLOCATION_KEYFLEX_ID
FROM HR_ALL_ORGANIZATION_UNITS hr ,
OTA_EVENTS EVT
WHERE hr.organization_id = evt.organization_id and
evt.event_id = p_event_id;
SELECT offering_id
FROM ota_events
where event_id= p_event_id;
SELECT COST_ALLOCATION_KEYFLEX_ID INTO l_cost_allocation_keyflex_id
FROM HR_ALL_ORGANIZATION_UNITS WHERE organization_id = p_business_group_id_from;
l_dynamicSqlString := 'SELECT '|| l_hr_cost_segment ||' FROM PAY_COST_ALLOCATION_KEYFLEX
WHERE COST_ALLOCATION_KEYFLEX_ID = :txn ' ;
l_dynamicSqlString := 'SELECT '|| l_hr_cost_segment || ' FROM PAY_COST_ALLOCATION_KEYFLEX
WHERE COST_ALLOCATION_KEYFLEX_ID = :txn ' ;
/* SELECT hr.COST_ALLOCATION_KEYFLEX_ID INTO l_cost_allocation_keyflex_id
FROM HR_ALL_ORGANIZATION_UNITS hr ,
PER_ALL_ASSIGNMENTS_F asg
WHERE hr.organization_id = asg.organization_id and
asg.organization_id = p_organization_id and
asg.assignment_id = p_assignment_id ; */
l_dynamicSqlString := 'SELECT '||l_hr_cost_segment || ' FROM PAY_COST_ALLOCATION_KEYFLEX
WHERE COST_ALLOCATION_KEYFLEX_ID = :txn ' ;
/* SELECT hr.COST_ALLOCATION_KEYFLEX_ID INTO l_cost_allocation_keyflex_id
FROM HR_ALL_ORGANIZATION_UNITS hr ,
OTA_EVENTS EVT
WHERE hr.organization_id = evt.organization_id and
evt.event_id = p_event_id; */
l_dynamicSqlString := 'SELECT '||l_hr_cost_segment || ' FROM PAY_COST_ALLOCATION_KEYFLEX
WHERE COST_ALLOCATION_KEYFLEX_ID = :txn ' ;
SELECT COST_ALLOCATION_KEYFLEX_ID INTO l_cost_allocation_keyflex_id
FROM HR_ALL_ORGANIZATION_UNITS WHERE organization_id = p_business_group_id_to;
l_dynamicSqlString := 'SELECT '||l_hr_cost_segment || ' FROM PAY_COST_ALLOCATION_KEYFLEX
WHERE COST_ALLOCATION_KEYFLEX_ID = :txn ' ;
l_dynamicSqlString := 'SELECT '||l_hr_cost_segment || ' FROM PAY_COST_ALLOCATION_KEYFLEX
WHERE COST_ALLOCATION_KEYFLEX_ID = :txn ' ;
/* SELECT hr.COST_ALLOCATION_KEYFLEX_ID INTO l_cost_allocation_keyflex_id
FROM HR_ALL_ORGANIZATION_UNITS hr ,
PER_ALL_ASSIGNMENTS_F asg
WHERE hr.organization_id = asg.organization_id and
asg.organization_id = p_organization_id and
asg.assignment_id = p_assignment_id ; */
l_dynamicSqlString := 'SELECT '||l_hr_cost_segment || ' FROM PAY_COST_ALLOCATION_KEYFLEX
WHERE COST_ALLOCATION_KEYFLEX_ID = :txn ' ;
/* SELECT hr.COST_ALLOCATION_KEYFLEX_ID INTO l_cost_allocation_keyflex_id
FROM HR_ALL_ORGANIZATION_UNITS hr ,
OTA_EVENTS EVT
WHERE hr.organization_id = evt.organization_id and
evt.event_id = p_event_id; */
l_dynamicSqlString := 'SELECT '||l_hr_cost_segment || ' FROM PAY_COST_ALLOCATION_KEYFLEX
WHERE COST_ALLOCATION_KEYFLEX_ID = :txn ' ;
,P_transaction_type => 'INSERT');