TYPE=VIEW
query=select `lc`.`acc_no` AS `acc_no`,(select `s`.`sub_head` from `co-operativebank-mitrachak`.`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-mitrachak`.`loan_rec` `lc` join `co-operativebank-mitrachak`.`voucher` `v` where ((`v`.`Acc_no` = `lc`.`acc_no`) and (`v`.`sub_head` = `lc`.`sub_head`) and (`lc`.`loan_against_sv_acc` like \'136101001351\')) group by `v`.`Acc_no`
md5=a62acc24f33a55912d718595618d80de
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2026-03-13 13:05:37
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 \'136101001351\' group by v.acc_no
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `lc`.`acc_no` AS `acc_no`,(select `s`.`sub_head` from `co-operativebank-mitrachak`.`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-mitrachak`.`loan_rec` `lc` join `co-operativebank-mitrachak`.`voucher` `v` where ((`v`.`Acc_no` = `lc`.`acc_no`) and (`v`.`sub_head` = `lc`.`sub_head`) and (`lc`.`loan_against_sv_acc` like \'136101001351\')) group by `v`.`Acc_no`
