You are on page 1of 1

select

ln_br_code,
ln_file_no,
ct_cust_name,
--F_APP_PROP_ADDRESS_T (ln_br_code , ln_cust_id ,1) prop_address,
--F_APP_PROP_ADDRESS_T (ln_br_code , ln_cust_id ,2) prop_locality,
--lnp_desc,
decode(ln_type_prop_code,1,'house',2,'flat',3,'others',4,'bunglow') prop_t
ype,
ln_prop_area_ft prop_size_in_ft,
--round(ln_prop_area_ft/9,2) prop_size_in_yards,
--round(ln_plot_area/9,2) ln_plot_area_in_yards,
--round(ln_plinth_area/9,2) built,
--ln_plinth_area built,
--ln_age_prop,
to_char(lta_sanc_dt,'dd-mon-yyyy') lta_sanc_dt,
to_char(lta_first_disb_date,'dd-mon-yyyy') disb_dt,
to_char(verf_prop_date,'dd-mon-yyyy') verf_prop_date,
nvl(ln_d_landcst,0) + nvl(ln_d_purp_con_cst,0) + nvl(ln_d_othcst,0) + nvl(l
n_d_con_cst,0) property_cost,
-- ln_val_flat_aspv,
--lst_sanc_amt,
--lst_disb+lst_lob_disb disb,
lst_pric_bal,
lst_int_bal
from
ln_loan_det ,
cust_mst,
ln_loan_tran,
loan_purp_mst,
verify_status,
loan_statement
where
ln_br_code=ct_br_code and
ln_cust_id=ct_cust_id and
lst_br_code=ln_br_code and
lst_app_key=ln_app_key and
lst_date='30-Jun-2010' and
lst_pric_bal>0 and
verf_br_code=ln_br_code and
verf_ln_app_key=ln_app_key and
ln_lnp_code=lnp_code and
lta_br_code=ln_br_code and
lta_app_key=ln_app_key and
lta_sanc_dt between to_date('01-Apr-2010') and to_date('30-Jun-2010')
order by
ln_file_no

You might also like