TYPE=VIEW
query=select `v`.`Acc_no` AS `acc_no`,`da`.`mobile` AS `mobile`,if(((`v`.`head` > \'23099\') and (`v`.`head` < \'23600\')),(sum(`v`.`dr`) - sum(`v`.`cr`)),(sum(`v`.`cr`) - sum(`v`.`dr`))) AS `bal`,`v`.`sub_head` AS `sub_head` from (`co-operativebank-dekhaliannapurna`.`voucher` `v` USE INDEX (`by_sub_head`) USE INDEX (`by_acc_no`) USE INDEX (`by_head`) join `co-operativebank-dekhaliannapurna`.`j_a` `da`) where ((`da`.`Acc_No` = `v`.`Acc_no`) and ((`v`.`sub_head` = \'14101\') or (`v`.`sub_head` = \'14201\')) and (`v`.`status` <> 4)) group by `v`.`Acc_no`,`da`.`Acc_No`
md5=c94ebcf944cf3af293cfe39b9376a3d9
updatable=0
algorithm=0
definer_user=root
definer_host=localhost
suid=1
with_check_option=0
timestamp=2022-05-24 07:43:23
create-version=1
source=select  `v`.`Acc_no`  AS  `acc_no` ,\n `da`.`mobile`  AS  `mobile` ,\nif( ( (  `v`.`head`  >  \'23099\' ) and (  `v`.`head`  <  \'23600\' ) ) ,\n( sum(  `v`.`dr`  )  - sum(  `v`.`cr`  )  ),\n( sum(  `v`.`cr`  )  - sum(  `v`.`dr`  )  ) ) AS  `bal` ,\n `v`.`sub_head`  AS  `sub_head`  from (  `co-operativebank-dekhaliannapurna`.`voucher`  `v`  USE  INDEX (  `by_head`  )  USE  INDEX (  `by_acc_no`  )  USE  INDEX (  `by_sub_head`  )  join  `co-operativebank-dekhaliannapurna`.`j_a`  `da`  ) where ( (  `da`.`Acc_No`  =  `v`.`Acc_no`  ) and ( (  `v`.`sub_head`  =  \'14101\' ) or (  `v`.`sub_head`  =  \'14201\' ) ) and (  `v`.`status`  <>4 ) ) group  by  `v`.`Acc_no` ,\n `da`.`Acc_No`
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `v`.`Acc_no` AS `acc_no`,`da`.`mobile` AS `mobile`,if(((`v`.`head` > \'23099\') and (`v`.`head` < \'23600\')),(sum(`v`.`dr`) - sum(`v`.`cr`)),(sum(`v`.`cr`) - sum(`v`.`dr`))) AS `bal`,`v`.`sub_head` AS `sub_head` from (`co-operativebank-dekhaliannapurna`.`voucher` `v` USE INDEX (`by_sub_head`) USE INDEX (`by_acc_no`) USE INDEX (`by_head`) join `co-operativebank-dekhaliannapurna`.`j_a` `da`) where ((`da`.`Acc_No` = `v`.`Acc_no`) and ((`v`.`sub_head` = \'14101\') or (`v`.`sub_head` = \'14201\')) and (`v`.`status` <> 4)) group by `v`.`Acc_no`,`da`.`Acc_No`
