TYPE=VIEW
query=select `lc`.`acc_no` AS `acc_no`,(select `s`.`sub_head` from `co-operativebank`.`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`.`loan_rec` `lc` join `co-operativebank`.`voucher` `v` where ((`v`.`Acc_no` = `lc`.`acc_no`) and (`v`.`sub_head` = `lc`.`sub_head`) and (`lc`.`loan_against_sv_acc` like \'010001000356\')) group by `v`.`Acc_no`
md5=f1a4c5738b9ca641994c5e073d027b79
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2025-12-18 09:28:06
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 \'010001000356\' 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`.`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`.`loan_rec` `lc` join `co-operativebank`.`voucher` `v` where ((`v`.`Acc_no` = `lc`.`acc_no`) and (`v`.`sub_head` = `lc`.`sub_head`) and (`lc`.`loan_against_sv_acc` like \'010001000356\')) group by `v`.`Acc_no`
