SELECT t1.*,(select v.code_value_name from sys_code_values_v v where v.code = 'CON_WRITE_OFF_FLAG' and v.code_value = t1.cf_61_write_off_flag) cf_61_write_off_flag_n
SELECT t1.*,
FROM (SELECT t.contract_id,
(select v.code_value_name
t.contract_name,
from sys_code_values_v v
f.cashflow_id,
where v.code = 'CON_WRITE_OFF_FLAG'
t.search_term_1,
and v.code_value = t1.cf_61_write_off_flag) cf_61_write_off_flag_n,