The following lines contain the word 'select', 'insert', 'update' or 'delete':
select max(period_counter) period_counter
from fa_deprn_summary
where asset_id = fp_asset_id
and book_type_code = fp_book_type_code
;
select revaluation_factor
from igi_iac_reval_asset_rules
where asset_id = fp_asset_id
and book_type_code = fp_book_type_code
and revaluation_id = fp_revaluation_id;
select 'x' valid_rec
from fa_books
where asset_id = fp_asset_id
and book_type_code = fp_book_type_code
and cost = 0
and transaction_header_id_out is null
;
select 'x'
from igi_iac_transaction_headers
where asset_id = fp_asset_id
and book_type_code = fp_book_type_code
and period_counter = fp_period_counter
and mass_Reference_id <> fp_revaluation_id
and revaluation_type_flag in ( 'O', 'P' )
and fp_reval_type = 'O'
and adjustment_status <> 'OBSOLETE'
;
SELECT mass_reference_id revaluation_id
FROM igi_iac_transaction_headers
WHERE asset_id = fp_asset_id
AND book_type_code = fp_book_type_code
AND period_counter = fp_period_counter
AND transaction_type_code = 'REVALUATION'
AND adjustment_status = 'PREVIEW'
AND mass_Reference_id <> fp_revaluation_id;
select asset_number
into l_asset_num
from fa_additions
where asset_id = fp_asset_id
;