The following lines contain the word 'select', 'insert', 'update' or 'delete':
Select
SC.Location_flex_structure,
SOB.Currency_code
into h_loc_flex_struct,
CURRENCY_CODE
from FA_SYSTEM_CONTROLS SC,
FA_BOOK_CONTROLS BC,
GL_SETS_OF_BOOKS SOB
where BC.BOOK_TYPE_CODE = P_BOOK
and SOB.Set_of_books_id = BC.Set_of_books_ID;
select meaning
into h_classification
from FA_LOOKUPS
where lookup_type ='JP_CLASSIFICATION'
and lookup_code = p_classification;
select meaning
into h_imperial_code
from FA_LOOKUPS
where lookup_type ='JP_IMPERIAL'
and lookup_code = to_char(to_date(to_char(p_year),'YYYY'),'E','nls_calendar=''Japanese Imperial''');
select to_number(to_char(to_date(to_char(p_year),'YYYY'),'YY','nls_calendar=''Japanese Imperial'''))
into h_imperial_year
from dual;
select sum(theoretical_nbv), sum(evaluated_nbv)
into c_sum_theoretical_nbv, c_sum_evaluated_nbv
from FA_DEPRN_TAX_REP_ITF DTI
where DTI.END_COST >0
and DTI.STATE = sum_state
and DTI.REQUEST_ID = p_request_id;
select count(asset_id)
into c_count
from FA_DEPRN_TAX_REP_ITF
where request_id = p_request_id
and year =p_year
and state = sum_state
and add_dec_flag='A';
else select count(asset_id)
into c_count
from FA_DEPRN_TAX_REP_ITF
where request_id = p_request_id
and year =p_year
and state = sum_state
and end_cost >0;