TYPE=VIEW
query=select `v`.`Acc_no` AS `acc_no`,(sum(`v`.`dr`) - sum(`v`.`cr`)) AS `openbal`,0 AS `dueamt` from `co-operativebank-bajbajia`.`voucher` `v` join `co-operativebank-bajbajia`.`shg_subsidy_f` `f` where ((`v`.`Acc_no` = `f`.`acc_no`) and (`v`.`date` <= \'2018-09-30\') 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-bajbajia`.`voucher` `v` join `co-operativebank-bajbajia`.`shg_subsidy_f` `f` where ((`v`.`Acc_no` = `f`.`acc_no`) and (`v`.`date` <= \'2024-07-08\') and (`v`.`sub_head` = \'23113\')) group by `v`.`Acc_no`
md5=b589a2a34b2e672f243d4636f4ceb530
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=2
with_check_option=0
timestamp=2024-07-08 04:23:52
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<=\'2018-09-30\' 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<=\'2024-07-08\' 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-bajbajia`.`voucher` `v` join `co-operativebank-bajbajia`.`shg_subsidy_f` `f` where ((`v`.`Acc_no` = `f`.`acc_no`) and (`v`.`date` <= \'2018-09-30\') 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-bajbajia`.`voucher` `v` join `co-operativebank-bajbajia`.`shg_subsidy_f` `f` where ((`v`.`Acc_no` = `f`.`acc_no`) and (`v`.`date` <= \'2024-07-08\') and (`v`.`sub_head` = \'23113\')) group by `v`.`Acc_no`
