TYPE=VIEW
query=select `lc`.`acc_no` AS `acc_no`,(select `s`.`sub_head` from `co-operativebank-dkmadhabpur`.`sub_head` `s` where (`s`.`code` = `lc`.`sub_head`)) AS `Loan_type`,(sum(`v`.`dr`) - sum(`v`.`cr`)) AS `Outstanding_bal`,max(`lc`.`fianl_date`) AS `DueDate` from `co-operativebank-dkmadhabpur`.`loan_rec` `lc` join `co-operativebank-dkmadhabpur`.`voucher` `v` where ((`v`.`Acc_no` = `lc`.`acc_no`) and (`v`.`sub_head` = `lc`.`sub_head`) and (`lc`.`loan_against_sv_acc` like \'157101000145\')) group by `v`.`Acc_no`
md5=3e9740d7884d7e007842aeec70751570
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2026-02-21 06:59:24
create-version=1
source=SELECT lc.acc_no,(select sub_head from sub_head s where s.code=lc.sub_head ) as Loan_type,sum(dr)-sum(cr) as Outstanding_bal, max(fianl_date) as DueDate FROM `loan_rec` lc, voucher v WHERE v.acc_no=lc.acc_no and v.sub_head=lc.sub_head and  `loan_against_sv_acc` LIKE \'157101000145\' group by v.acc_no
client_cs_name=utf8mb4
connection_cl_name=utf8mb4_general_ci
view_body_utf8=select `lc`.`acc_no` AS `acc_no`,(select `s`.`sub_head` from `co-operativebank-dkmadhabpur`.`sub_head` `s` where (`s`.`code` = `lc`.`sub_head`)) AS `Loan_type`,(sum(`v`.`dr`) - sum(`v`.`cr`)) AS `Outstanding_bal`,max(`lc`.`fianl_date`) AS `DueDate` from `co-operativebank-dkmadhabpur`.`loan_rec` `lc` join `co-operativebank-dkmadhabpur`.`voucher` `v` where ((`v`.`Acc_no` = `lc`.`acc_no`) and (`v`.`sub_head` = `lc`.`sub_head`) and (`lc`.`loan_against_sv_acc` like \'157101000145\')) group by `v`.`Acc_no`
