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
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 v.code_value_name
from sys_code_values_v v
where v.code = 'VENDER_NAME'
and v.code_value = t1.vender_name) vender_name_n
FROM (SELECT hli.vender_name,
t.contract_id,
t.contract_name,
t.contract_name,
f.cashflow_id,
f.cashflow_id,
t.search_term_1,
t.search_term_1,
...
@@ -67,38 +76,6 @@
...
@@ -67,38 +76,6 @@
FROM hls_business_type hbt
FROM hls_business_type hbt
WHERE t.business_type = hbt.business_type
WHERE t.business_type = hbt.business_type
AND rownum = 1) con_business_type_n,
AND rownum = 1) con_business_type_n,
/*(SELECT m.taxpayer_type
FROM hls_bp_master_lv m
WHERE m.bp_id = csh_payment_req_pkg.get_bp_id(t.contract_id)) taxpayer_type,