TYPE=VIEW
query=select `v1`.`no` AS `no`,`v1`.`cash_acc` AS `acc_no`,`a`.`name` AS `name`,`a`.`lfno` AS `lfno`,sum(`v1`.`dr`) AS `CASH`,\'0\' AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from (`co-operativebank-mohati`.`voucher` `v1` USE INDEX (`by_sub_head`) USE INDEX (`by_cash_acc`) USE INDEX (`by_acc_no`) join `co-operativebank-mohati`.`quick_name` `a` USE INDEX (`by_acc_no`)) where (((`v1`.`cash_acc` = `a`.`acc_no`) or (`v1`.`Acc_no` = `a`.`acc_no`)) and (`v1`.`sub_head` = \'63937\') and (`v1`.`date` = \'2020-03-25\') and (`v1`.`deposit_type` = \'CASH\') and (`v1`.`head` > 60000) and (`v1`.`dr` <> \'0\')) group by `v1`.`no` union all select `v1`.`no` AS `no`,`v1`.`cash_acc` AS `acc_no`,`a`.`name` AS `name`,`a`.`lfno` AS `lfno`,\'0\' AS `0`,sum(`v1`.`dr`) AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from (`co-operativebank-mohati`.`voucher` `v1` USE INDEX (`by_sub_head`) USE INDEX (`by_cash_acc`) USE INDEX (`by_acc_no`) join `co-operativebank-mohati`.`quick_name` `a` USE INDEX (`by_acc_no`)) where (((`v1`.`cash_acc` = `a`.`acc_no`) or (`v1`.`Acc_no` = `a`.`acc_no`)) and (`v1`.`sub_head` = \'63937\') and (`v1`.`date` = \'2020-03-25\') and (`v1`.`deposit_type` = \'TRANSFER\') and (`v1`.`head` > 60000) and (`v1`.`dr` <> \'0\')) group by `v1`.`no`
md5=6a3ac0bee54203019d5b6397f71ed850
updatable=0
algorithm=0
definer_user=admin
definer_host=localhost
suid=1
with_check_option=0
timestamp=2020-10-16 13:11:12
create-version=1
source=select  `v1`.`no`  AS  `no` ,\n `v1`.`cash_acc`  AS  `acc_no` ,\n `a`.`name`  AS  `name` ,\n `a`.`lfno`  AS  `lfno` ,\nsum(  `v1`.`dr`  )  AS  `CASH` ,\n \'0\' AS  `TRAN` ,\n `v1`.`date`  AS  `date` ,\n `v1`.`sub_head`  AS  `sub_head`  from (  `co-operativebank-mohati`.`voucher`  `v1`  USE  INDEX (  `by_acc_no`  )  USE  INDEX (  `by_cash_acc`  )  USE  INDEX (  `by_sub_head`  )  join  `co-operativebank-mohati`.`quick_name`  `a`  USE  INDEX (  `by_acc_no`  )  ) where ( ( (  `v1`.`cash_acc`  =  `a`.`acc_no`  ) or (  `v1`.`Acc_no`  =  `a`.`acc_no`  ) ) and (  `v1`.`sub_head`  =  \'63937\' ) and (  `v1`.`date`  =  \'2020-03-25\' ) and (  `v1`.`deposit_type`  =  \'CASH\' ) and (  `v1`.`head`  >60000 ) and (  `v1`.`dr`  <>  \'0\' ) ) group  by  `v1`.`no`  union  all  select  `v1`.`no`  AS  `no` ,\n `v1`.`cash_acc`  AS  `acc_no` ,\n `a`.`name`  AS  `name` ,\n `a`.`lfno`  AS  `lfno` ,\n \'0\' AS  `0` ,\nsum(  `v1`.`dr`  )  AS  `TRAN` ,\n `v1`.`date`  AS  `date` ,\n `v1`.`sub_head`  AS  `sub_head`  from (  `co-operativebank-mohati`.`voucher`  `v1`  USE  INDEX (  `by_acc_no`  )  USE  INDEX (  `by_cash_acc`  )  USE  INDEX (  `by_sub_head`  )  join  `co-operativebank-mohati`.`quick_name`  `a`  USE  INDEX (  `by_acc_no`  )  ) where ( ( (  `v1`.`cash_acc`  =  `a`.`acc_no`  ) or (  `v1`.`Acc_no`  =  `a`.`acc_no`  ) ) and (  `v1`.`sub_head`  =  \'63937\' ) and (  `v1`.`date`  =  \'2020-03-25\' ) and (  `v1`.`deposit_type`  =  \'TRANSFER\' ) and (  `v1`.`head`  >60000 ) and (  `v1`.`dr`  <>  \'0\' ) ) group  by  `v1`.`no`
client_cs_name=utf8
connection_cl_name=utf8_general_ci
view_body_utf8=select `v1`.`no` AS `no`,`v1`.`cash_acc` AS `acc_no`,`a`.`name` AS `name`,`a`.`lfno` AS `lfno`,sum(`v1`.`dr`) AS `CASH`,\'0\' AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from (`co-operativebank-mohati`.`voucher` `v1` USE INDEX (`by_sub_head`) USE INDEX (`by_cash_acc`) USE INDEX (`by_acc_no`) join `co-operativebank-mohati`.`quick_name` `a` USE INDEX (`by_acc_no`)) where (((`v1`.`cash_acc` = `a`.`acc_no`) or (`v1`.`Acc_no` = `a`.`acc_no`)) and (`v1`.`sub_head` = \'63937\') and (`v1`.`date` = \'2020-03-25\') and (`v1`.`deposit_type` = \'CASH\') and (`v1`.`head` > 60000) and (`v1`.`dr` <> \'0\')) group by `v1`.`no` union all select `v1`.`no` AS `no`,`v1`.`cash_acc` AS `acc_no`,`a`.`name` AS `name`,`a`.`lfno` AS `lfno`,\'0\' AS `0`,sum(`v1`.`dr`) AS `TRAN`,`v1`.`date` AS `date`,`v1`.`sub_head` AS `sub_head` from (`co-operativebank-mohati`.`voucher` `v1` USE INDEX (`by_sub_head`) USE INDEX (`by_cash_acc`) USE INDEX (`by_acc_no`) join `co-operativebank-mohati`.`quick_name` `a` USE INDEX (`by_acc_no`)) where (((`v1`.`cash_acc` = `a`.`acc_no`) or (`v1`.`Acc_no` = `a`.`acc_no`)) and (`v1`.`sub_head` = \'63937\') and (`v1`.`date` = \'2020-03-25\') and (`v1`.`deposit_type` = \'TRANSFER\') and (`v1`.`head` > 60000) and (`v1`.`dr` <> \'0\')) group by `v1`.`no`
