TYPE=VIEW
query=select `v`.`Acc_no` AS `acc_no`,(sum(`v`.`dr`) - sum(`v`.`cr`)) AS `openbal`,0 AS `dueamt` from `co-operativebank`.`voucher` `v` join `co-operativebank`.`shg_subsidy_f` `f` where ((`v`.`Acc_no` = `f`.`acc_no`) and (`v`.`date` <= \'2019-10-01\') and (`v`.`sub_head` = \'23113\')) group by `v`.`Acc_no` union all select `v`.`Acc_no` AS `acc_no`,0 AS `openbal`,(sum(`v`.`dr`) - sum(`v`.`cr`)) AS `dueamt` from `co-operativebank`.`voucher` `v` join `co-operativebank`.`shg_subsidy_f` `f` where ((`v`.`Acc_no` = `f`.`acc_no`) and (`v`.`date` <= \'2020-03-31\') and (`v`.`sub_head` = \'23113\')) group by `v`.`Acc_no`
md5=645edd21b2a649c1c6cfb0fd168ac8f1
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2025-08-22 06:31:14
create-version=1
source=SELECT v.acc_no,(sum(dr)-sum(cr)) as openbal,0 as dueamt FROM voucher v,shg_subsidy_f f WHERE v.acc_no=f.acc_no and v.date<=\'2019-10-01\' and sub_head=\'23113\' group by v.acc_no union all SELECT v.acc_no,0 as openbal, (sum(dr)-sum(cr)) as dueamt FROM voucher v,shg_subsidy_f f WHERE v.acc_no=f.acc_no and v.date<=\'2020-03-31\' and sub_head=\'23113\' group by v.acc_no
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `v`.`Acc_no` AS `acc_no`,(sum(`v`.`dr`) - sum(`v`.`cr`)) AS `openbal`,0 AS `dueamt` from `co-operativebank`.`voucher` `v` join `co-operativebank`.`shg_subsidy_f` `f` where ((`v`.`Acc_no` = `f`.`acc_no`) and (`v`.`date` <= \'2019-10-01\') and (`v`.`sub_head` = \'23113\')) group by `v`.`Acc_no` union all select `v`.`Acc_no` AS `acc_no`,0 AS `openbal`,(sum(`v`.`dr`) - sum(`v`.`cr`)) AS `dueamt` from `co-operativebank`.`voucher` `v` join `co-operativebank`.`shg_subsidy_f` `f` where ((`v`.`Acc_no` = `f`.`acc_no`) and (`v`.`date` <= \'2020-03-31\') and (`v`.`sub_head` = \'23113\')) group by `v`.`Acc_no`
