TYPE=VIEW
query=select `lc`.`acc_no` AS `acc_no`,(select `s`.`sub_head` from `co-operativebank-henria`.`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-henria`.`loan_rec` `lc` join `co-operativebank-henria`.`voucher` `v` where ((`v`.`Acc_no` = `lc`.`acc_no`) and (`v`.`sub_head` = `lc`.`sub_head`) and (`lc`.`loan_against_sv_acc` like \'106101000594\')) group by `v`.`Acc_no`
md5=c03cb0e600a42e41fb6121a7f12dfc19
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2026-02-24 03:42:28
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 \'106101000594\' 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-henria`.`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-henria`.`loan_rec` `lc` join `co-operativebank-henria`.`voucher` `v` where ((`v`.`Acc_no` = `lc`.`acc_no`) and (`v`.`sub_head` = `lc`.`sub_head`) and (`lc`.`loan_against_sv_acc` like \'106101000594\')) group by `v`.`Acc_no`
