TYPE=VIEW
query=select `lc`.`acc_no` AS `acc_no`,(select `s`.`sub_head` from `co-operativebank-124`.`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-124`.`loan_rec` `lc` join `co-operativebank-124`.`voucher` `v` where ((`v`.`Acc_no` = `lc`.`acc_no`) and (`v`.`sub_head` = `lc`.`sub_head`) and (`lc`.`loan_against_sv_acc` like \'124101000660\')) group by `v`.`Acc_no`
md5=5857f72adbfacca49895c4a0b7a304f3
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2026-02-10 06:14:12
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 \'124101000660\' 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-124`.`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-124`.`loan_rec` `lc` join `co-operativebank-124`.`voucher` `v` where ((`v`.`Acc_no` = `lc`.`acc_no`) and (`v`.`sub_head` = `lc`.`sub_head`) and (`lc`.`loan_against_sv_acc` like \'124101000660\')) group by `v`.`Acc_no`
