TYPE=VIEW
query=select `v`.`Acc_no` AS `acc_no`,(sum(`v`.`dr`) - sum(`v`.`cr`)) AS `openbal`,0 AS `dueamt` from `co-operativebank-henria`.`voucher` `v` join `co-operativebank-henria`.`shg_subsidy_f` `f` where ((`v`.`Acc_no` = `f`.`acc_no`) and (`v`.`date` <= \'2024-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-henria`.`voucher` `v` join `co-operativebank-henria`.`shg_subsidy_f` `f` where ((`v`.`Acc_no` = `f`.`acc_no`) and (`v`.`date` <= \'2025-03-31\') and (`v`.`sub_head` = \'23113\')) group by `v`.`Acc_no`
md5=1985dce7681af762c6e41f6ffa6f35a3
updatable=0
algorithm=0
definer_user=admin
definer_host=%
suid=2
with_check_option=0
timestamp=2025-05-06 07:06:38
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<=\'2024-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<=\'2025-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-henria`.`voucher` `v` join `co-operativebank-henria`.`shg_subsidy_f` `f` where ((`v`.`Acc_no` = `f`.`acc_no`) and (`v`.`date` <= \'2024-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-henria`.`voucher` `v` join `co-operativebank-henria`.`shg_subsidy_f` `f` where ((`v`.`Acc_no` = `f`.`acc_no`) and (`v`.`date` <= \'2025-03-31\') and (`v`.`sub_head` = \'23113\')) group by `v`.`Acc_no`
