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` <= \'2025-04-01\') and (`v`.`sub_head` = \'23213\')) 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` <= \'2025-12-29\') and (`v`.`sub_head` = \'23213\')) group by `v`.`Acc_no`
md5=5c2d63906eb77562f4851a4fb99a6623
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=2
with_check_option=0
timestamp=2025-12-30 03:57:58
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<=\'2025-04-01\' and sub_head=\'23213\' 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<=\'2025-12-29\' and sub_head=\'23213\' 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` <= \'2025-04-01\') and (`v`.`sub_head` = \'23213\')) 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` <= \'2025-12-29\') and (`v`.`sub_head` = \'23213\')) group by `v`.`Acc_no`
